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
Example request
{
"state": "DISABLED"
}Response
Returned when the operation was successful.