Skip to main content

Update a package

PATCH 

/packages/:id

Update name, visible_to or default_revision_id, publish a new revision, or both. To publish, pair components with exactly one of version or bump. default: true promotes the revision published in this call and can't be combined with default_revision_id.

id, nrn and slug are immutable: sending any of them fails with 400.

PATCH or PUT?

PATCH works on an existing package by id and never creates one. When you don't have the id, or you're publishing from a pipeline, use PUT /packages: it creates or publishes by nrn and slug.

ℹ️ Note: Publishing a bill of materials identical to the latest revision's doesn't create a new revision. Publishing an existing version with a different bill of materials fails with 409.

Request

Responses

The updated package.