v1

latestOpenAPI 3.0.2Apache 2.02026-07-136548173.9 KB
Artifacts

Update artifact state

Updates the state of the artifact. For example, you can use this to mark the latest version of an artifact as DEPRECATED. The operation changes the state of the latest version of the artifact, even if this version is DISABLED. If multiple versions exist, only the most recent is changed.

This operation can fail for the following reasons:

  • No artifact with this artifactId exists (HTTP error 404)
  • A server error occurred (HTTP error 500)
put/groups/{groupId}/artifacts/{artifactId}/state

Request body

state'ENABLED' | 'DISABLED' | 'DEPRECATED' required

Describes the state of an artifact or artifact version. The following states are possible:

  • ENABLED
  • DISABLED
  • DEPRECATED

Example request

{
  "state": "DISABLED"
}

Response

Returned when the operation was successful.