The whole hunk
from line 1, old and new numbered
/
lines
from line 1
1---
2title: Stop Work
3url: https://platform.claude.com/docs/en/api/beta/environments/work/stop
4---
5
16# Stop Work
27
38**POST** `/v1/environments/{environment_id}/work/{work_id}/stop`
from line 25
2025
2126 - `string`
2227
23 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 41 more`
28 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 42 more`
2429
2530 - `"message-batches-2024-09-24"`
2631
from line 73
6873
6974 - `"user-profiles-2026-08-18"`
7075
76 - `"user-profiles-2026-09-04"`
77
7178 - `"advisor-tool-2026-03-01"`
7279
7380 - `"managed-agents-2026-04-01"`
from line 117
110117
111118 - `"mid-conversation-system-clear-at-2026-08-21"`
112119
120- `"anthropic-workspace-id": optional string`
121
113122## Body parameters
114123
115124- `force: optional boolean`
from line 137
128137 receive new messages. The environment worker polls for work to execute in a
129138 self-hosted sandbox.
130139
140 - `type: "work"`
141
142 The type of object (always 'work')
143
144 default: work
145
131146 - `id: string`
132147
133148 Work identifier (e.g., 'work_...')
from line 159
144159
145160 The actual work to be performed
146161
147 - `id: string`
148
149 Session identifier (e.g., 'session_...')
150
151162 - `type: "session"`
152163
153164 Type of work data
154165
166 - `id: string`
167
168 Session identifier (e.g., 'session_...')
169
155170 - `environment_id: string`
156171
157172 Environment identifier this work belongs to (e.g., `env_...`)
from line 208
193208 - `stopped_at: string or null`
194209
195210 RFC 3339 timestamp when work execution stopped
196
197 - `type: "work"`
198
199 The type of object (always 'work')
200
201 default: work
202211
203212## Example
204213