Adding Signatures
To add a signature to a document, you will first need to edit the fields object. The following code will do this:
HTTP Request
POST <host domain>/api/sign/v1/cs-packages/{packageId}/documents/{documentId}/approvals
HTTP Headers
Request Payload
For a complete description of each field, see the Request Payload Table below.
Response Payload
Updating a Signature On a Document
You can update a signature that has already been associated with a document. To update a signature, you will need to make a PUT request to:
With the updated signature parameters:
When updating a signature, your new Signature object must have the same id as the signature you want to update.
Deleting a Signature From a Document
Finally, deleting a signature is done by making a DELETE request to:
Request Payload Table
Property |
Type |
Editable |
Required |
Default |
Sample Values |
---|---|---|---|---|---|
role |
string |
Yes |
No |
n/a |
|
id |
string |
Yes |
No |
n/a |
|
fields | |||||
top |
integer |
Yes |
No |
0 |
510 |
left |
integer |
Yes |
No |
0 |
215 |
width |
integer |
Yes |
No |
200 |
200 |
height |
integer |
Yes |
No |
50 |
50 |
page |
integer |
Yes |
No |
0 |
0 |
type |
string |
Yes |
No |
n/a |
|
subtype |
string |
Yes |
No |
n/a |
|