/developers
Developer docsAtom Files ↗
← API referenceFile intelligence · API access unavailable
API REFERENCE / FILE INTELLIGENCE

PATCH /v1/files/{file_id}/processing-policy

Update which post-processing outputs are enabled for a file.

Request fields

LocationFieldTypeRequiredDescription
HeaderAuthorizationstringYesCredential scoped to the authorized resource.
HeaderContent-Typestring (media type)Yesapplication/json.
Pathfile_idstringYesStable Atom file ID.
HeaderIdempotency-KeystringYesStable retry identity.
Bodyexpected_policy_revisionstringYesRevision returned by the processing report.
BodyoutputsstringYesOutput kinds to enable or disable for this file.
Bodyoutputs[].kindstring (extensible)NoProcessor kind within each output entry.
Examples · extensiblethumbnailpage_ocrtranscriptpage_summarydocument_summaryface_detection
Bodyoutputs[].enabledstringNoWhether that processor should run automatically.

Request example

Example request
PATCH /v1/files/file_789/processing-policy
Authorization: Bearer <analysis-manage token>
Idempotency-Key: policy-8427
Content-Type: application/json

{
  "expected_policy_revision": "proc_rev_007",
  "outputs": [
    {
      "kind": "page_summary",
      "enabled": false
    }
  ]
}

HTTP status codes

StatusMeaning
202 AcceptedSuccess response shown below.
400 Bad RequestInvalid output kind or policy.
401 UnauthorizedMissing, expired, or invalid credential.
403 ForbiddenCredential is valid but lacks the required scope or role.
404 Not FoundFile is not visible to this caller.
409 ConflictPolicy revision changed or idempotency key was reused with different input.
429 Too Many RequestsRate limit reached; honor Retry-After when provided.
503 Service UnavailableService temporarily unavailable; retry safely.

Response fields

FieldTypeExample
operation_idstringop_601
file_idstringfile_789
statusstringaccepted
expected_policy_revisionstringproc_rev_007

Response example

Example response
202 Accepted
Content-Type: application/json

{
  "operation_id": "op_601",
  "file_id": "file_789",
  "status": "accepted",
  "expected_policy_revision": "proc_rev_007"
}

How it works

This is an owner-authorized, expected-revision change. Disabling an output stops future automatic generation but does not silently erase existing artifacts; use artifact deletion for removal. Sensitive analysis such as face detection requires separate explicit owner consent.