Skip to main content
When uploading a document to a worksite via the Partners API, each document type must be associated at the correct level: worksite (dossier) or worksite operation.
  • Worksite-level documents do not require a worksite_operation_id.
  • Operation-level documents require a worksite_operation_id.
  • Shared documents can be associated at either level: omit worksite_operation_id for worksite-level, or provide it for operation-level.
Providing a worksite_operation_id for a worksite-only document type will result in a 422 validation error. Similarly, omitting worksite_operation_id for an operation-only document type will also result in a 422 error.

Signed documents with electronic signature proofs

For entities with electronic signature proofs enabled, OPX stores the Yousign audit trail of each signer alongside the signed document (for example an AH signee, type 100). These proofs are internal documents: they are not returned by the Partners API. A signed document that holds such proofs cannot be replaced:
  • PUT /v1/worksites/{id}/documents/{document_id} returns 403 with the message “This document has electronic signature proofs: delete it, it cannot be replaced.” The signed document and its proofs are left unchanged.
  • To provide a new version, delete the document with DELETE /v1/worksites/{id}/documents/{document_id} (its proofs are deleted with it), then upload the new file with POST /v1/worksites/{id}/documents.
The usual access checks run first: a document you cannot update or delete still returns the same error as before.

Document types reference