AnthropicClaude 托管智能体

更新会话资源

更新会话上一份附加资源的内容或配置。

POST /anthropic/v1/sessions/{session_id}/resources/{resource_id}○ 未支持

请求参数

  • session_idstring必填

    path: 会话 ID(路径或查询参数)。

  • resource_idstring必填

    path: 路径参数:会话资源 ID。

  • session_idstring必填

    query: 会话 ID(路径或查询参数)。

  • authorization_tokenstring必填

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

返回

501 平台还没有实现这个端点;调用会得到下面这个响应:

平台还不能给会话挂载额外资源(文件、代码仓库等)。调用会返回 501(not_implemented_error),不产生副作用,官方 SDK 不会重试。

错误按 Claude Managed Agents 格式返回,参见 错误码

响应

HTTP 200

Successful response

application/json

名称类型说明
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.