The whole hunk
from line 1, old and new numbered
/
lines
from line 1
1---
2title: Workspaces
3url: https://platform.claude.com/docs/en/api/beta/organization/service_accounts/workspaces
4---
5
16# Workspaces
27
38## Add Workspace To Service Account
from line 34
2934
3035 - `string`
3136
32 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 41 more`
37 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 42 more`
3338
3439 - `"message-batches-2024-09-24"`
3540
from line 82
7782
7883 - `"user-profiles-2026-08-18"`
7984
85 - `"user-profiles-2026-09-04"`
86
8087 - `"advisor-tool-2026-03-01"`
8188
8289 - `"managed-agents-2026-04-01"`
from line 148
141148
142149- `BetaServiceAccountWorkspaceMember object`
143150
151 - `type: "service_account_workspace_member"`
152
153 default: service_account_workspace_member
154
144155 - `created_by_actor_id: string or null`
145156
146157 Tagged ID (`user_...`/`svac_...`) of the actor who created this membership.
from line 164
153164
154165 Tagged service account ID (`svac_...`).
155166
156 - `type: "service_account_workspace_member"`
157
158 default: service_account_workspace_member
159
160167 - `workspace_id: string`
161168
162169 Tagged workspace ID (`wrkspc_...`).
from line 256
249256
250257 - `string`
251258
252 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 41 more`
259 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 42 more`
253260
254261 - `"message-batches-2024-09-24"`
255262
from line 304
297304
298305 - `"user-profiles-2026-08-18"`
299306
307 - `"user-profiles-2026-09-04"`
308
300309 - `"advisor-tool-2026-03-01"`
301310
302311 - `"managed-agents-2026-04-01"`
from line 352
343352
344353- `data: array of BetaServiceAccountWorkspaceMember`
345354
355 - `type: "service_account_workspace_member"`
356
357 default: service_account_workspace_member
358
346359 - `created_by_actor_id: string or null`
347360
348361 Tagged ID (`user_...`/`svac_...`) of the actor who created this membership.
from line 368
355368
356369 Tagged service account ID (`svac_...`).
357370
358 - `type: "service_account_workspace_member"`
359
360 default: service_account_workspace_member
361
362371 - `workspace_id: string`
363372
364373 Tagged workspace ID (`wrkspc_...`).
from line 450
441450
442451 - `string`
443452
444 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 41 more`
453 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 42 more`
445454
446455 - `"message-batches-2024-09-24"`
447456
from line 498
489498
490499 - `"user-profiles-2026-08-18"`
491500
501 - `"user-profiles-2026-09-04"`
502
492503 - `"advisor-tool-2026-03-01"`
493504
494505 - `"managed-agents-2026-04-01"`
from line 544
533544
534545### Returns
535546
536- `service_account_id: string`
537
538 Tagged service account ID (`svac_...`) named in the delete request. Removal is idempotent; see the endpoint description for the implicit-membership no-op.
539
540547- `type: "service_account_workspace_member_deleted"`
541548
542549 default: service_account_workspace_member_deleted
543550
551- `service_account_id: string`
552
553 Tagged service account ID (`svac_...`) named in the delete request. Removal is idempotent; see the endpoint description for the implicit-membership no-op.
554
544555- `workspace_id: string`
545556
546557 Tagged workspace ID (`wrkspc_...`) named in the delete request.
from line 581
570581
571582- `WorkspaceRemoveResponse object`
572583
573 - `service_account_id: string`
574
575 Tagged service account ID (`svac_...`) named in the delete request. Removal is idempotent; see the endpoint description for the implicit-membership no-op.
576
577584 - `type: "service_account_workspace_member_deleted"`
578585
579586 default: service_account_workspace_member_deleted
587
588 - `service_account_id: string`
589
590 Tagged service account ID (`svac_...`) named in the delete request. Removal is idempotent; see the endpoint description for the implicit-membership no-op.
580591
581592 - `workspace_id: string`
582593