- 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_idfor 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, type100). 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}returns403with 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 withPOST /v1/worksites/{id}/documents.