Stop Work
Stop Work through the OMA API.
?beta=true.Authorizations
OMA workspace API key.
Headers
Optional header to specify the beta version(s) you want to use.
To use multiple betas, use a comma separated list like beta1,beta2 or specify the header multiple times for each beta.
The version of the OMA API you want to use.
Read more about versioning and our version history here.
Query Parameters
Selects the beta API contract for this endpoint. Must be true.
true Body
Request to stop a work item.
If true, immediately stop work without graceful shutdown
Response
Successful Response
Work resource representing a unit of work in a self-hosted environment.
Work items are queued when sessions are created or when long-dormant sessions receive new messages. The environment worker polls for work to execute in a self-hosted sandbox.
RFC 3339 timestamp when the work item was acknowledged and assigned to a self-hosted sandbox
RFC 3339 timestamp when work was created
The actual work to be performed
Environment identifier this work belongs to (e.g., env_...)
Work identifier (e.g., 'work_...')
RFC 3339 timestamp of the most recent heartbeat
User-provided metadata key-value pairs associated with this work item
Credential payload used by the environment worker to execute this work item. May be populated when polling for work; null on all other retrieval paths.
RFC 3339 timestamp when work execution started
Current state of the work item
queued, starting, active, stopping, stopped RFC 3339 timestamp when stop was requested
RFC 3339 timestamp when work execution stopped
The type of object (always 'work')
"work"