Reads a pack's recorded source again.
const url = 'https://example.com/v1/m/skills/packs/example/update';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"apply":true,"expected_digest":"example","ref":"example","subdir":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/m/skills/packs/example/update \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "apply": true, "expected_digest": "example", "ref": "example", "subdir": "example" }'Reads a pack’s recorded source again. Without apply it answers current or available, with the diff of what a new revision would change and the manifest digest of the bytes read; nothing is published.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Path parameter id.
Header Parameters
Section titled “ Header Parameters ”Required with apply.
Target tenant id; required when the principal can act in more than one tenant.
Request Body required
Section titled “ Request Body required ”object
Publish the source’s current content as the next revision. Requires expected_digest and an Idempotency-Key header.
The candidate manifest digest (candidate.manifest_digest of the check) the caller reviewed. Required with apply; refused otherwise.
Git packs only: follow this branch, tag or commit from now on. Defaults to the recorded ref.
Git packs only: the selected directory, for a revision recorded before directories were kept.
Example generated
{ "apply": true, "expected_digest": "example", "ref": "example", "subdir": "example"}Responses
Section titled “ Responses ”Update check or idempotent replay of a published revision.
object
Example generated
{}Reviewed update published as a new pack revision.
object
Example generated
{}Bad request
object
Example generated
{}Unauthenticated
object
Example generated
{}Forbidden
object
Example generated
{}Not found
object
Example generated
{}Conflict / setup required
object
Example generated
{}Rate limited
object
Example generated
{}