Update a template draft
curl --request PATCH \
--url https://api.usenexio.com/documents/template-drafts/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"data": "<unknown>",
"expected_updated_at": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://api.usenexio.com/documents/template-drafts/{id}"
payload = {
"data": "<unknown>",
"expected_updated_at": "2023-11-07T05:31:56Z"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({data: '<unknown>', expected_updated_at: '2023-11-07T05:31:56Z'})
};
fetch('https://api.usenexio.com/documents/template-drafts/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"created_at": "2023-11-07T05:31:56Z",
"data": "<unknown>",
"id": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"account_id": "<string>",
"document_id": "<string>",
"submission_id": "<string>",
"template_id": "<string>",
"user_id": "<string>"
},
"meta": {
"nextCursor": "<string>",
"requestId": "<string>"
}
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}Documents
Update a template draft
Changes a template draft’s working copy.
PATCH
/
documents
/
template-drafts
/
{id}
Update a template draft
curl --request PATCH \
--url https://api.usenexio.com/documents/template-drafts/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"data": "<unknown>",
"expected_updated_at": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://api.usenexio.com/documents/template-drafts/{id}"
payload = {
"data": "<unknown>",
"expected_updated_at": "2023-11-07T05:31:56Z"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({data: '<unknown>', expected_updated_at: '2023-11-07T05:31:56Z'})
};
fetch('https://api.usenexio.com/documents/template-drafts/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"created_at": "2023-11-07T05:31:56Z",
"data": "<unknown>",
"id": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"account_id": "<string>",
"document_id": "<string>",
"submission_id": "<string>",
"template_id": "<string>",
"user_id": "<string>"
},
"meta": {
"nextCursor": "<string>",
"requestId": "<string>"
}
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}Body
application/json
Response
OK