Re-read an attached policy document into the | Comp AI API
Queues a fresh read of the PDF already attached to a policy, storing its text as the version’s editor content. Use when an uploaded policy still reads as.
Authorizations
API key for authentication
Headers
Organization ID (required for session auth, optional for API key auth)
Path Parameters
Policy ID
"pol_abc123def456"
Body
Optional version ID whose attached document should be read. Omit to use the policy's current version.
"pv_abc123def456"
Response
True when a read of the attached document was queued. False when no read will happen — see reason.
true
The version the read targets, or null when the policy has no version to read into.
"pv_abc123def456"
Null when the read was queued. Otherwise why it was not, so a caller never waits for text that is not coming: no_version / no_document (nothing to read), already_has_content (the version already has text), pending_approval or published_version (the target may not be written to), document_replaced (the attached file changed), queue_unavailable (the job could not be scheduled — retry).
null

