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 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
- 200
- 4XX
- 5XX
The updated package.
Client error responses due to invalid input, missing parameters or insufficient permissions.
Server error responses.