Register a sandbox image
Registers a Docker image so sandboxes can be provisioned from it. The image belongs to the workspace in X-Workspace-Id.
For images in a private registry, first create the credential with POST /registries and pass its id as registry_id.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Headers
x-workspace-id
UUID of the workspace that scopes this request. List the workspaces you belong to with GET /workspaces.
Request
This endpoint expects an object.
name
image
description
tag
enabled
is_default
registry_id
memory_mb
Memory in MB (256–8192)
readiness_port
HTTP port for readiness probe. Leave blank to use exec probe (pgrep supervisord).
ttl_seconds
Hard time limit in seconds for sandbox pods (60–86400). Leave blank for no limit.
Response
Successful Response
id
name
image
description
tag
enabled
is_default
memory_mb
created_at
updated_at
readiness_port
ttl_seconds
workspace_id
registry_id
registry_name
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
422
Unprocessable Entity Error