---
title: "Flags an artifact to enable or disable"
method: PATCH
path: "/v1/projects/{projectId}/artifacts"
tags: ["Artifacts"]
---

# Flags an artifact to enable or disable

`PATCH /v1/projects/{projectId}/artifacts`

An endpoint to enable or disable an artifact

## Path parameters

- `projectId` string, required

## Request body

- ArtifactEnabledRequest
  - `enabled` boolean — The flag to enable or disable the artifact
  - `environmentName` string, required — The environment name of the artifact to enable or disable
  - `versionName` string, required — The version of the artifact to enable or disable

## Response `200`

Artifact enabled/disabled successfully

- ArtifactEnabledResponse
  - `enabled` boolean, required — The flag to enable or disable the artifact
  - `versionName` string, required — The version of the artifact

## Other responses

- `400` — Wrong request parameters used
- `403` — Unauthorized
- `404` — Artifact version name not found to enable/disable
- `500` — Unexpected error occurred

---

[API](https://skmtc.net/maia/apis/maia-public-rest-api.md) · [All operations](https://skmtc.net/maia/apis/maia-public-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/maia/maia-public-rest-api/revisions/6239825f68eb/schema)
