v1

latestOpenAPI 3.0.2Apache 2.02026-07-136548173.9 KB
Versions

Update artifact version state

Updates the state of a specific version of an artifact. For example, you can use this operation to disable a specific version.

This operation can fail for the following reasons:

  • No artifact with this artifactId exists (HTTP error 404)
  • No version with this version exists (HTTP error 404)
  • A server error occurred (HTTP error 500)
put/groups/{groupId}/artifacts/{artifactId}/versions/{version}/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 update was successful.