Skip to main content
PATCH
/
v1
/
projects
/
{projectId}
/
artifacts
Flags an artifact to enable or disable
curl --request PATCH \
  --url https://eu1.api.matillion.com/dpc/v1/projects/{projectId}/artifacts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "environmentName": "Dev",
  "versionName": "1.2.0",
  "enabled": false
}
'
{
  "enabled": true,
  "versionName": "<string>"
}

Authorizations

Authorization
string
header
required

a valid bearer token

Path Parameters

projectId
string
required

Body

application/json
environmentName
string
required

The environment name of the artifact to enable or disable

Minimum string length: 1
versionName
string
required

The version of the artifact to enable or disable

Minimum string length: 1
enabled
boolean

The flag to enable or disable the artifact

Response

Artifact enabled/disabled successfully

enabled
boolean
required

The flag to enable or disable the artifact

versionName
string
required

The version of the artifact

Minimum string length: 1