AnthropicClaude Managed Agents

Update Session Resource

Update the content or configuration of a resource attached to a session.

POST /anthropic/v1/sessions/{session_id}/resources/{resource_id}○ Unsupported

Request parameters

  • session_idstring必填

    path: Session ID (path or query parameter).

  • resource_idstring必填

    path: Path parameter: the session resource ID.

  • session_idstring必填

    query: Session ID (path or query parameter).

  • authorization_tokenstring必填

    New authorization token for the resource. Currently only `github_repository` resources support token rotation.

Returns

501 This endpoint is not implemented yet; calling it returns the response below:

The platform cannot attach extra resources (files, repositories, etc.) to a session yet. Calling it returns 501 (not_implemented_error), produces no side effects, and the official SDK does not retry.

Errors follow the Claude Managed Agents format — see error codes

Response

HTTP 200

Successful response

application/json

NameTypeDescription
idstring
created_atstringA timestamp in RFC 3339 format
mount_pathstring | null | stringFilesystem path where the store is mounted in the session container, e.g. /mnt/memory/user-preferences. Derived from the store's name. Output-only.
typestring
updated_atstringA timestamp in RFC 3339 format
urlstring
checkoutnull | object
checkout.namestringBranch name to check out.
checkout.typestring
checkout.shastringFull commit SHA to check out.
file_idstring
memory_store_idstringThe memory store ID (memstore_...). Must belong to the caller's organization and workspace.
accessnull | stringAccess mode for an attached memory store.
descriptionstringDescription of the memory store, snapshotted at attach time. Rendered into the agent's system prompt. Empty string when the store has no description.
instructionsnull | stringPer-attachment guidance for the agent on how to use this store. Rendered into the memory section of the system prompt. Max 4096 chars.
namenull | stringDisplay name of the memory store, snapshotted at attach time. Later edits to the store's name do not propagate to this resource.