The whole hunk
from line 15, old and new numbered
/
lines
from line 15
1515
1616- `memory_store_id: string`
1717
18 The ID of the memory store to create the memory in (`memstore_...`).
19
1820### Query parameters
1921
2022- `view: optional BetaManagedAgentsMemoryView`
2123
22 Query parameter for view
24 Selects which projection of a `memory` or `memory_version` the server returns. `basic` returns the object with `content` set to `null`; `full` populates `content`. When omitted, the default is endpoint-specific: retrieve operations default to `full`; list, create, and update operations default to `basic`. Listing with `view=full` caps `limit` at 20.
2325
2426 - `"basic"`
2527
28 Return the object with `content` set to `null`. The `content_size_bytes` and `content_sha256` fields remain populated, so sync clients can diff without fetching content.
29
2630 - `"full"`
2731
32 Return the object with `content` populated. On list endpoints, `view=full` caps `limit` at 20.
33
2834### Headers
2935
3036- `"anthropic-beta": optional array of AnthropicBeta`
from line 135
129135
130136- `"anthropic-workspace-id": optional string`
131137
138 Optional header to select the Workspace for this request. The value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
139
140 Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.
141
132142### Body parameters
133143
134144- `content: string or null`
from line 242
232242
233243- `memory_store_id: string`
234244
245 The ID of the memory store to list memories from (`memstore_...`).
246
235247### Query parameters
236248
237249- `depth: optional number`
from line 272
260272
261273 - `"basic"`
262274
275 Return the object with `content` set to `null`. The `content_size_bytes` and `content_sha256` fields remain populated, so sync clients can diff without fetching content.
276
263277 - `"full"`
264278
279 Return the object with `content` populated. On list endpoints, `view=full` caps `limit` at 20.
280
265281### Headers
266282
267283- `"anthropic-beta": optional array of AnthropicBeta`
from line 382
366382
367383- `"anthropic-workspace-id": optional string`
368384
385 Optional header to select the Workspace for this request. The value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
386
387 Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.
388
369389### Returns
370390
371391- `data: optional array of BetaManagedAgentsMemoryListItem`
from line 495
475495
476496- `memory_store_id: string`
477497
498 The ID of the memory store that holds the memory (`memstore_...`).
499
478500- `memory_id: string`
479501
502 The ID of the memory to retrieve (`mem_...`).
503
480504### Query parameters
481505
482506- `view: optional BetaManagedAgentsMemoryView`
483507
484 Query parameter for view
508 Selects which projection of a `memory` or `memory_version` the server returns. `basic` returns the object with `content` set to `null`; `full` populates `content`. When omitted, the default is endpoint-specific: retrieve operations default to `full`; list, create, and update operations default to `basic`. Listing with `view=full` caps `limit` at 20.
485509
486510 - `"basic"`
487511
512 Return the object with `content` set to `null`. The `content_size_bytes` and `content_sha256` fields remain populated, so sync clients can diff without fetching content.
513
488514 - `"full"`
489515
516 Return the object with `content` populated. On list endpoints, `view=full` caps `limit` at 20.
517
490518### Headers
491519
492520- `"anthropic-beta": optional array of AnthropicBeta`
from line 619
591619
592620- `"anthropic-workspace-id": optional string`
593621
622 Optional header to select the Workspace for this request. The value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
623
624 Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.
625
594626### Returns
595627
596628- `BetaManagedAgentsMemory object`
from line 709
677709
678710- `memory_store_id: string`
679711
712 The ID of the memory store that holds the memory (`memstore_...`).
713
680714- `memory_id: string`
681715
716 The ID of the memory to update (`mem_...`).
717
682718### Query parameters
683719
684720- `view: optional BetaManagedAgentsMemoryView`
685721
686 Query parameter for view
722 Selects which projection of a `memory` or `memory_version` the server returns. `basic` returns the object with `content` set to `null`; `full` populates `content`. When omitted, the default is endpoint-specific: retrieve operations default to `full`; list, create, and update operations default to `basic`. Listing with `view=full` caps `limit` at 20.
687723
688724 - `"basic"`
689725
726 Return the object with `content` set to `null`. The `content_size_bytes` and `content_sha256` fields remain populated, so sync clients can diff without fetching content.
727
690728 - `"full"`
691729
730 Return the object with `content` populated. On list endpoints, `view=full` caps `limit` at 20.
731
692732### Headers
693733
694734- `"anthropic-beta": optional array of AnthropicBeta`
from line 833
793833
794834- `"anthropic-workspace-id": optional string`
795835
836 Optional header to select the Workspace for this request. The value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
837
838 Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.
839
796840### Body parameters
797841
798842- `content: optional string or null`
from line 947
903947
904948- `memory_store_id: string`
905949
950 The ID of the memory store that holds the memory (`memstore_...`).
951
906952- `memory_id: string`
907953
954 The ID of the memory to delete (`mem_...`).
955
908956### Query parameters
909957
910958- `expected_content_sha256: optional string`
911959
912 Query parameter for expected_content_sha256
960 Delete the memory only if its current `content_sha256` equals this value, given as 64 lowercase hexadecimal characters. Omit it to delete unconditionally.
913961
962 If the hashes differ, the request fails with HTTP status 409 and nothing is deleted.
963
914964### Headers
915965
916966- `"anthropic-beta": optional array of AnthropicBeta`
from line 1065
10151065
10161066- `"anthropic-workspace-id": optional string`
10171067
1068 Optional header to select the Workspace for this request. The value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
1069
1070 Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.
1071
10181072### Returns
10191073
10201074- `BetaManagedAgentsDeletedMemory object`
from line 1230
11761230
11771231 - `BetaManagedAgentsMemoryPreconditionFailedError object`
11781232
1233 The error returned with HTTP status 409 when a request's precondition doesn't hold for the memory's current state, such as `precondition` on an update or `expected_content_sha256` on a delete.
1234
1235 The error doesn't include the memory's current state. Retrieve the memory to see its current content and `content_sha256` before you retry.
1236
1237 See the [memory guide](https://platform.claude.com/docs/en/managed-agents/memory#safe-content-edits-optimistic-concurrency) to learn more about safe content edits with content hash preconditions.
1238
11791239 - `type: "memory_precondition_failed_error"`
11801240
11811241 - `message: optional string`
11821242
1243 A human-readable explanation of why the precondition failed.
1244
11831245 - `BetaManagedAgentsMemoryPathConflictError object`
11841246
1247 The error returned with HTTP status 409 when a create or rename targets a path that another memory uses, or a path that overlaps another memory's path.
1248
1249 Two paths overlap when one is an ancestor of the other, such as `/notes` and `/notes/todo.md`. To free the path, rename or delete the memory that `conflicting_memory_id` references, then retry. To change that memory instead of creating a new one, update it.
1250
11851251 - `type: "memory_path_conflict_error"`
11861252
11871253 - `conflicting_memory_id: optional string`
11881254
1255 The ID of the memory that blocked the write (`mem_...`), or an empty string if that memory can't be identified.
1256
1257 Retry the request when it is empty.
1258
11891259 - `conflicting_path: optional string`
11901260
1261 The path that blocked the write: the requested path, or the path of a memory that is an ancestor or descendant of it.
1262
11911263 - `message: optional string`
11921264
1265 A human-readable explanation of the conflict. To handle the error in code, use `conflicting_path` and `conflicting_memory_id` instead.
1266
11931267 - `BetaManagedAgentsConflictError object`
11941268
11951269 - `type: "conflict_error"`
from line 1388
13141388
13151389- `BetaManagedAgentsMemoryPathConflictError object`
13161390
1391 The error returned with HTTP status 409 when a create or rename targets a path that another memory uses, or a path that overlaps another memory's path.
1392
1393 Two paths overlap when one is an ancestor of the other, such as `/notes` and `/notes/todo.md`. To free the path, rename or delete the memory that `conflicting_memory_id` references, then retry. To change that memory instead of creating a new one, update it.
1394
13171395 - `type: "memory_path_conflict_error"`
13181396
13191397 - `conflicting_memory_id: optional string`
13201398
1399 The ID of the memory that blocked the write (`mem_...`), or an empty string if that memory can't be identified.
1400
1401 Retry the request when it is empty.
1402
13211403 - `conflicting_path: optional string`
13221404
1405 The path that blocked the write: the requested path, or the path of a memory that is an ancestor or descendant of it.
1406
13231407 - `message: optional string`
13241408
1409 A human-readable explanation of the conflict. To handle the error in code, use `conflicting_path` and `conflicting_memory_id` instead.
1410
13251411### Beta Managed Agents Memory Precondition Failed Error
13261412
13271413- `BetaManagedAgentsMemoryPreconditionFailedError object`
13281414
1415 The error returned with HTTP status 409 when a request's precondition doesn't hold for the memory's current state, such as `precondition` on an update or `expected_content_sha256` on a delete.
1416
1417 The error doesn't include the memory's current state. Retrieve the memory to see its current content and `content_sha256` before you retry.
1418
1419 See the [memory guide](https://platform.claude.com/docs/en/managed-agents/memory#safe-content-edits-optimistic-concurrency) to learn more about safe content edits with content hash preconditions.
1420
13291421 - `type: "memory_precondition_failed_error"`
13301422
13311423 - `message: optional string`
13321424
1425 A human-readable explanation of why the precondition failed.
1426
13331427### Beta Managed Agents Memory Prefix
13341428
13351429- `BetaManagedAgentsMemoryPrefix object`
from line 1444
13501444
13511445 - `"basic"`
13521446
1447 Return the object with `content` set to `null`. The `content_size_bytes` and `content_sha256` fields remain populated, so sync clients can diff without fetching content.
1448
13531449 - `"full"`
1450
1451 Return the object with `content` populated. On list endpoints, `view=full` caps `limit` at 20.
13541452
13551453### Beta Managed Agents Precondition
13561454