AnthropicClaude Managed Agents

Add Session Resource

Attach an extra resource to a session for its execution to use.

POST /anthropic/v1/sessions/{session_id}/resources◐ Partial

Request parameters

  • session_idstring必填

    path: Session ID (path or query parameter).

  • typestring必填

    query: The request-body field this session resource is added from.

    取值 file
  • file_idstring必填

    ID of a previously uploaded file.

  • mount_pathstring可选

    Mount path in the container. Defaults to `/mnt/session/uploads/<file_id>`.

Returns

501

Supports persistence, retrieval and removal of file resource references, up to 500 per session. Files must be live and owned by the current tenant. Paths default to /mnt/session/uploads/<file_id>; custom paths are rooted there and parent traversal is rejected. File content is immutable through this API. Sandbox synchronization is not implemented in this batch.

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
file_idstring
mount_pathstring
typestring
updated_atstringA timestamp in RFC 3339 format