Skip to navigation

Activate a document

Makes the document the live one for its category: any other active document of the same category for this subcontractor and organization becomes superseded, and this one becomes active. Works from any status (inactive, superseded, archived). Already-active documents are returned unchanged. No request body. Publishes a document.activated event on the organization’s event stream.

Activation only flips status. It does not start validation or extraction — a document uploaded with activate=false stays unprocessed until you call Extract.

Requires scope documents:write.

Authentication

AuthorizationBearer

Session JWT or API key (ak_...)

Path parameters

subcontractorIdstringRequiredformat: "uuid"
documentIdstringRequiredformat: "uuid"

Response

The active document
dataobjectOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error