Skip to main content

Replace Agent File Content

PUT 

/agents/:agentId/files/:fileId/content

Replace content of a stable file UUID with exactly one multipart file and a required replay key. Latest pending generation supersedes prior pending content; old clean bytes remain available until clean promotion. Requires agents:operate. Current principal/owner/filespace/origin authority is required. New local private intake requires API_REST_FILES_ENABLED and direct-upload scanning; admission defaults off. Active and pending generations remain separate; shared filespaces are not principal confidentiality compartments.

Request​

Responses​

Response Headers
    RateLimit-Limit

    Smaller configured principal/owner request window limit when enforcement is enabled.

    RateLimit-Remaining

    Smaller remaining principal/owner allowance at admission.

    RateLimit-Reset

    Seconds until the Redis-server-time fixed request window resets.

    Idempotency-Replayed

    Present when Idempotency-Key is used: false for the original response, true for a replay.

    Operation-Id

    Opaque retained receipt ID. Outcome lookup is available for covered G02 member and allowed G01 service operations.

    Idempotency-Expires-At

    Original protected response expiry.

    X-Request-ID

    Server-generated synchronous HTTP correlation; no worker lineage implied.