Register a platform artifact
POST/artifacts
Idempotent upsert. The owner nrn, the type and the identity subset of meta identify the artifact; each unique full meta blob mints (or reuses) one revision. The response carries the artifact and revision ids that package components pin.
Returns 201 when the call created the artifact or a new revision, and 200 when both already existed.
On an artifact that already exists:
- A
visible_toin the body replaces the artifact's visibility. annotationsaren't part of the revision identity. When the body carries annotations, they replace the stored set as a whole (last write wins), so always send the complete set. Omitting them keeps the stored set.
ℹ️ Note: For
oci_image,tagis part of the revision meta: registering an existing digest under a new tag mints a new revision.
Request
Responses
- 200
- 201
- 4XX
- 5XX
The artifact and revision already existed.
The call created the artifact or a new revision.
Client error responses due to invalid input, missing parameters or insufficient permissions.
Server error responses.