Re-create the pack from a new OCI image
const url = 'https://your-org.evershell.ai/v1/packs/example';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"image_ref":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://your-org.evershell.ai/v1/packs/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "image_ref": "example" }'Permissions: caps:write.
Replaces the pack’s underlying image and rereads pack.yaml.
The replacement image_ref must come from the same
repository as the existing one — only the tag/version can
change. Preserves the pack id so agent roles referencing it
don’t need updating.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Request Body required
Section titled “Request Body required ”object
Example generated
{ "image_ref": "example"}Responses
Section titled “ Responses ”OK
object
Owning org id. Redacted to absent on packs the caller
doesn’t own (platform-shipped + foreign community
packs) — use owned to distinguish.
Caps.yaml fragment shipped by the pack
Comma-separated names of related packs (display hint).
Where the image was pushed from (upload, image_ref, clone).
True when the pack is org-scoped to the caller’s org.
Example
{ "id": "pack_01HZ", "version": "1.2.0", "tier": "recommended", "visibility": "org"}Validation failure
object
object
Closed-enum slug (e.g. permission_denied, validation_error, workspace_not_found)
Human-readable summary
Server-generated request id for correlating logs
Optional structured context. Validation errors land at
details.fields as a per-field map.
object
Example
{ "error": { "code": "permission_denied", "message": "caller lacks required scope", "request_id": "7f3a9c2e" }}Resource not found in the caller’s org
object
object
Closed-enum slug (e.g. permission_denied, validation_error, workspace_not_found)
Human-readable summary
Server-generated request id for correlating logs
Optional structured context. Validation errors land at
details.fields as a per-field map.
object
Example
{ "error": { "code": "permission_denied", "message": "caller lacks required scope", "request_id": "7f3a9c2e" }}Tenant is past_due, decommissioning, or trial-expired
object
object
Closed-enum slug (e.g. permission_denied, validation_error, workspace_not_found)
Human-readable summary
Server-generated request id for correlating logs
Optional structured context. Validation errors land at
details.fields as a per-field map.
object
Example
{ "error": { "code": "permission_denied", "message": "caller lacks required scope", "request_id": "7f3a9c2e" }}