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. If multiple versions exist, only the most recent is changed.
This operation can fail for the following reasons:
- No artifact with this
artifactIdexists (HTTP error404) - A server error occurred (HTTP error
500)