Edit Document
Edit Document
/api/public/standalone/edit_documents/v2
Make one or more request to add content to one or more documents.
Headers
- Content-Type:application/json
- Authorization: Bearer [user key: auth token]
Parameters
Field | Description | Format |
---|---|---|
document_id | The id of the original document used in the template. This is a required item. |
integer |
session_editor_token | A required item retrieved from the initiate edit session endpoint. |
string |
document_edits |
A required list of document edits. Each item is a dictionary or an array containing:
|
list of [arrays]/dictionaries |
A CURL Request
curl -X POST https://docendorse.com/api/public/standalone/edit_documents/v2 \
-H "Content-Type: application/json" \
-H "Authorization: Bearer " \
-d '{
"session_editor_token": "",
"document_id": 2880,
"document_edits": [
{
"recipient_email": "rickjames@example.com",
"data_label": "ContractTerms",
"page": 1,
"value": "These are the terms of the contract please honor them or we will go to court."
}
]
}'
Response
{
status: string [status of the request]
description: string [describes the result of the request]
}
Error
{
status: error,
description: error message
}