Skip to main content

Assign a signature field to a person.

PATCH/api/v1/documents/{document_id}/signature-fields/{signature_field_id}signatures:sign

Assigns the field to a user of the company (assignee.user_id) or to any e-mail address (assigned_email), for someone outside the company, and optionally sets its page. A field already signed cannot be reassigned, and a locked document cannot be changed.

Scopesignatures:sign
AsynchronousNo
MCP toolupdate_document_signature_field
Portal permissionsedit_signature_field_assignments

Parameters​

NameInTypeRequiredDescription
document_idpathstringRequired
signature_field_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
If-MatchheaderstringOptional

Request body​

Content typeType
application/jsonSignatureFieldPatchInput
application/merge-patch+jsonSignatureFieldPatchInput

Responses​

StatusDescriptionBody
200Success.application/json SignatureField or object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409conflict, lockedapplication/problem+json Problem
412precondition_failedapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

SignatureField​

FieldTypeRequiredDescription
assigned_emailstring or nullRequiredThe address the field is assigned to; null when it is assigned to nobody. For someone outside the company this is the whole assignment.
assigneeUserRef or nullRequiredThe person the field is assigned to, or null. A person outside the company has no user_id and shows the address.
is_signedbooleanRequired
last_signing_errorstring or nullRequiredWhy the latest attempt to sign the field failed, while it is still unsigned (kept for an hour); null otherwise.
namestringRequired
pageinteger or nullRequired
signature_field_idstringRequiredbase64url (no padding) of the field name in the PDF.
signed_atstring or nullRequiredWhen it was signed, as the Portal records it; null while it is unsigned.
signed_byUserRef or nullRequiredWho signed the field; null while it is unsigned.

SignatureFieldPatchInput​

FieldTypeRequiredDescription
assigned_emailstring or nullOptionalAn e-mail address, for someone outside the company or a user by address. Give this or assignee.
assigneeUserRefInput or nullOptionalA user of the company. Give this or assigned_email.
is_signedboolean or nullOptional
last_signing_errorstring or nullOptional
namestring or nullOptional
pageinteger or nullOptional1-based; 1 when absent on the first assignment.
signature_field_idstring or nullOptional
signed_atstring or nullOptional
signed_byUserRefInput or nullOptional

UserRef​

FieldTypeRequiredDescription
display_namestringRequired
kindstring: user, system, integration or stringRequired
user_idstring or nullRequired

UserRefInput​

FieldTypeRequiredDescription
display_namestringOptional
kindstring: user, system, integrationOptional
user_idstring or nullOptional