Skip to content
中文

Update Session Resource

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

Request parameters

  • session_idstringrequired

    path: Session ID (path or query parameter).

  • resource_idstringrequired

    path: Path parameter: the session resource ID.

  • session_idstringrequired

    query: Session ID (path or query parameter).

  • authorization_tokenstringrequired

    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

Request

curl
curl -X POST https://api.deepraxis.com/anthropic/v1/sessions/sample_id_123/resources/resource_123 \
  -H "x-api-key: $PRAXIS_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "anthropic-beta: managed-agents-2026-04-01"
Python
from anthropic import Anthropic

client = Anthropic(
    base_url="https://api.deepraxis.com/anthropic",
    api_key="$PRAXIS_API_KEY",
)

# 官方有、平台未支持:调用得到 501(not_implemented_error),无副作用。
result = client.beta.sessions.resources.update("resource_123", {"session_id": "sample_id_123"})
print(result)
TypeScript
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({
  baseURL: "https://api.deepraxis.com/anthropic",
  apiKey: "$PRAXIS_API_KEY",
});

// 官方有、平台未支持:调用得到 501(not_implemented_error),无副作用。
const result = await client.beta.sessions.resources.update("resource_123", { session_id: "sample_id_123" });
console.log(result);

Response 501

{
  "type": "error",
  "error": {
    "type": "not_implemented_error",
    "message": "Not implemented: this Managed Agents operation is not implemented on this platform yet (POST /v1/sessions/{session_id}/resources/{resource_id}); see the docs for the supported subset."
  },
  "request_id": "3242997b-faa1-40d5-89d4-f4fe77b9fb7e"
}

Response

HTTP 200

Successful response

application/json

Name Type Description
id string
created_at string A timestamp in RFC 3339 format
mount_path string | null | string 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.
type string
updated_at string A timestamp in RFC 3339 format
url string
checkout null | object
checkout.name string Branch name to check out.
checkout.type string
checkout.sha string Full commit SHA to check out.
file_id string
memory_store_id string The memory store ID (memstore_...). Must belong to the caller's organization and workspace.
access null | string Access mode for an attached memory store.
description string Description of the memory store, snapshotted at attach time. Rendered into the agent's system prompt. Empty string when the store has no description.
instructions null | string Per-attachment guidance for the agent on how to use this store. Rendered into the memory section of the system prompt. Max 4096 chars.
name null | string Display name of the memory store, snapshotted at attach time. Later edits to the store's name do not propagate to this resource.