PUT /v1/signature/envelopes/{id}/requested-documents
const url = 'https://api.asap.cool/v1/signature/envelopes/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/requested-documents';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"documents":[{"label":"example","position":1,"required":true,"signer_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.asap.cool/v1/signature/envelopes/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/requested-documents \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "documents": [ { "label": "example", "position": 1, "required": true, "signer_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" } ] }'Authorizations
Section intitulée « Authorizations »Parameters
Section intitulée « Parameters »Path Parameters
Section intitulée « Path Parameters »Envelope identifier.
Request Body required
Section intitulée « Request Body required »Body of PUT …/requested-documents: the full set, replacing any prior one.
object
The documents to request (replaces the existing set).
One requested document in a PUT …/requested-documents body.
object
Human label shown to the signer (required, non-blank).
Display order among the requested pieces (>= 0).
Whether the upload blocks signing (defaults to true).
The signer to request it from; null = any signer may upload it.
Example generated
{ "documents": [ { "label": "example", "position": 1, "required": true, "signer_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" } ]}Responses
Section intitulée « Responses »Requested documents replaced.
Public projection of a [RequestedDocument].
object
Stable identifier.
Human label shown to the signer.
Display order.
Whether the upload blocks signing.
The signer it is requested from; null = any signer.
Example generated
[ { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "label": "example", "position": 1, "required": true, "signer_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }]No active org.
Generic error body returned by API handlers when they fail. code is a
stable machine-readable token; message is human-friendly and meant for
surfacing to end users.
object
Stable machine token (e.g. invalid_credentials).
Offending request field for validation errors, when known.
Human-readable message.
Example generated
{ "code": "example", "field": "example", "message": "example"}Missing signature:write scope.
Generic error body returned by API handlers when they fail. code is a
stable machine-readable token; message is human-friendly and meant for
surfacing to end users.
object
Stable machine token (e.g. invalid_credentials).
Offending request field for validation errors, when known.
Human-readable message.
Example generated
{ "code": "example", "field": "example", "message": "example"}Not found or cross-org.
Generic error body returned by API handlers when they fail. code is a
stable machine-readable token; message is human-friendly and meant for
surfacing to end users.
object
Stable machine token (e.g. invalid_credentials).
Offending request field for validation errors, when known.
Human-readable message.
Example generated
{ "code": "example", "field": "example", "message": "example"}Not a draft, or a target signer is outside the envelope (signature_conflict).
Generic error body returned by API handlers when they fail. code is a
stable machine-readable token; message is human-friendly and meant for
surfacing to end users.
object
Stable machine token (e.g. invalid_credentials).
Offending request field for validation errors, when known.
Human-readable message.
Example generated
{ "code": "example", "field": "example", "message": "example"}A document has a blank label or a negative position.
Generic error body returned by API handlers when they fail. code is a
stable machine-readable token; message is human-friendly and meant for
surfacing to end users.
object
Stable machine token (e.g. invalid_credentials).
Offending request field for validation errors, when known.
Human-readable message.
Example generated
{ "code": "example", "field": "example", "message": "example"}