Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

Update Session Resource changedapi/beta/sessions/resources/update

Nearest release: v2.1.245, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+33added
Lines−32removed
From line 1 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits19to this page, all time

# Update Session Resource ## Path parameters ## Headers ## Body parameters ## Returns ## Example ### Response (200) ## Update Session Resource ### Path Parameters ### Header Parameters ### Body Parameters ### Returns ### Example #### Response

The whole hunk

from line 1, old and new numbered
/
lines
from line 1
1---
2title: Update Session Resource
3url: https://platform.claude.com/docs/en/api/beta/sessions/resources/update
4---
1# Update Session Resource
52 
6## Update Session Resource
3**POST** `/v1/sessions/{session_id}/resources/{resource_id}`
74 
8**post** `/v1/sessions/{session_id}/resources/{resource_id}`
9 
105Update Session Resource
116 
12### Path Parameters
7## Path parameters
138 
149- `session_id: string`
1510 
1611- `resource_id: string`
1712 
18### Header Parameters
13## Headers
1914 
2015- `"anthropic-beta": optional array of AnthropicBeta`
2116 
from line 88
9388 
9489 - `"mid-conversation-tool-changes-2026-07-01"`
9590 
96### Body Parameters
91## Body parameters
9792 
9893- `authorization_token: string`
9994 
10095 New authorization token for the resource. Currently only `github_repository` resources support token rotation.
10196 
102### Returns
97 minLength: 1, maxLength: 4096
10398 
104- `BetaManagedAgentsGitHubRepositoryResource object { id, created_at, mount_path, 4 more }`
99## Returns
105100 
101- `BetaManagedAgentsGitHubRepositoryResource object`
102 
106103 - `id: string`
107104 
108105 - `created_at: string`
from line 106
109106 
110107 A timestamp in RFC 3339 format
111108 
109 format: date-time
110 
112111 - `mount_path: string`
113112 
114113 - `type: "github_repository"`
115114 
116 - `"github_repository"`
117 
118115 - `updated_at: string`
119116 
120117 A timestamp in RFC 3339 format
121118 
119 format: date-time
120 
122121 - `url: string`
123122 
124123 - `checkout: optional BetaManagedAgentsBranchCheckout or BetaManagedAgentsCommitCheckout or null`
125124 
126 - `BetaManagedAgentsBranchCheckout object { name, type }`
125 - `BetaManagedAgentsBranchCheckout object`
127126 
128127 - `name: string`
129128 
130129 Branch name to check out.
131130 
131 minLength: 1, maxLength: 255
132 
132133 - `type: "branch"`
133134 
134 - `"branch"`
135 - `BetaManagedAgentsCommitCheckout object`
135136 
136 - `BetaManagedAgentsCommitCheckout object { sha, type }`
137 
138137 - `sha: string`
139138 
140139 Full commit SHA to check out.
141140 
141 minLength: 7, maxLength: 64
142 
142143 - `type: "commit"`
143144 
144 - `"commit"`
145- `BetaManagedAgentsFileResource object`
145146 
146- `BetaManagedAgentsFileResource object { id, created_at, file_id, 3 more }`
147 
148147 - `id: string`
149148 
150149 - `created_at: string`
from line 150
151150 
152151 A timestamp in RFC 3339 format
153152 
153 format: date-time
154 
154155 - `file_id: string`
155156 
156157 - `mount_path: string`
from line 158
157158 
158159 - `type: "file"`
159160 
160 - `"file"`
161 
162161 - `updated_at: string`
163162 
164163 A timestamp in RFC 3339 format
165164 
166- `BetaManagedAgentsMemoryStoreResource object { memory_store_id, type, access, 4 more }`
165 format: date-time
167166 
167- `BetaManagedAgentsMemoryStoreResource object`
168 
168169 A memory store attached to an agent session.
169170 
170171 - `memory_store_id: string`
from line 174
173174 
174175 - `type: "memory_store"`
175176 
176 - `"memory_store"`
177 
178177 - `access: optional "read_write" or "read_only" or null`
179178 
180179 Access mode for an attached memory store.
from line 190
191190 
192191 Per-attachment guidance for the agent on how to use this store. Rendered into the memory section of the system prompt. Max 4096 chars.
193192 
193 maxLength: 4096
194 
194195 - `mount_path: optional string or null`
195196 
196197 Filesystem path where the store is mounted in the session container, e.g. /mnt/memory/user-preferences. Derived from the store's name. Output-only.
from line 200
199200 
200201 Display name of the memory store, snapshotted at attach time. Later edits to the store's name do not propagate to this resource.
201202 
202### Example
203## Example
203204 
204```http
205```bash
205206curl https://api.anthropic.com/v1/sessions/$SESSION_ID/resources/$RESOURCE_ID \
206207 -H 'Content-Type: application/json' \
207208 -H 'anthropic-version: 2023-06-01' \
from line 213
212213 }'
213214```
214215 
215#### Response
216### Response (200)
216217 
217218```json
218219{
Feedback