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.
| Scope | signatures:sign |
| Asynchronous | No |
| MCP tool | update_document_signature_field |
| Portal permissions | edit_signature_field_assignments |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
document_id | path | string | Required | |
signature_field_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
If-Match | header | string | Optional |
Request body
| Content type | Type |
|---|---|
application/json | SignatureFieldPatchInput |
application/merge-patch+json | SignatureFieldPatchInput |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json SignatureField or object |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
409 | conflict, locked | application/problem+json Problem |
412 | precondition_failed | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
SignatureField
| Field | Type | Required | Description |
|---|---|---|---|
assigned_email | string or null | Required | The address the field is assigned to; null when it is assigned to nobody. For someone outside the company this is the whole assignment. |
assignee | UserRef or null | Required | The person the field is assigned to, or null. A person outside the company has no user_id and shows the address. |
is_signed | boolean | Required | |
last_signing_error | string or null | Required | Why the latest attempt to sign the field failed, while it is still unsigned (kept for an hour); null otherwise. |
name | string | Required | |
page | integer or null | Required | |
signature_field_id | string | Required | base64url (no padding) of the field name in the PDF. |
signed_at | string or null | Required | When it was signed, as the Portal records it; null while it is unsigned. |
signed_by | UserRef or null | Required | Who signed the field; null while it is unsigned. |
SignatureFieldPatchInput
| Field | Type | Required | Description |
|---|---|---|---|
assigned_email | string or null | Optional | An e-mail address, for someone outside the company or a user by address. Give this or assignee. |
assignee | UserRefInput or null | Optional | A user of the company. Give this or assigned_email. |
is_signed | boolean or null | Optional | |
last_signing_error | string or null | Optional | |
name | string or null | Optional | |
page | integer or null | Optional | 1-based; 1 when absent on the first assignment. |
signature_field_id | string or null | Optional | |
signed_at | string or null | Optional | |
signed_by | UserRefInput or null | Optional |
UserRef
| Field | Type | Required | Description |
|---|---|---|---|
display_name | string | Required | |
kind | string: user, system, integration or string | Required | |
user_id | string or null | Required |
UserRefInput
| Field | Type | Required | Description |
|---|---|---|---|
display_name | string | Optional | |
kind | string: user, system, integration | Optional | |
user_id | string or null | Optional |