Updates an artifact by uploading new content. The body of the request can
be the raw content of the artifact or a JSON object containing both the raw content and
a set of references to other artifacts.. This is typically in JSON format for most
of the supported types, but may be in another format for a few (for example, PROTOBUF).
The type of the content should be compatible with the artifact's type (it would be
an error to update an AVRO artifact with new OPENAPI content, for example).
The update could fail for a number of reasons including:
- Provided content (request body) was empty (HTTP error
400) - No artifact with the
artifactIdexists (HTTP error404) - The new content violates one of the rules configured for the artifact (HTTP error
409) - A server error occurred (HTTP error
500)
When successful, this creates a new version of the artifact, making it the most recent (and therefore official) version of the artifact.