Update automation
curl --request PUT \
--url https://api.docsautomator.co/updateAutomation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "Updated Invoice Generator",
"isActive": true,
"locale": "en-us"
}
'{
"message": "Success",
"updatedAutomation": {
"_id": "<string>",
"title": "<string>",
"dataSource": {
"name": "<string>"
},
"dataSourceName": "<string>",
"docTemplateLink": "<string>",
"newDocumentNameField": "<string>",
"isActive": true,
"saveGoogleDoc": true,
"locale": "<string>",
"formatNumbersWithLocale": true,
"pdfExpiration": "<string>",
"dateCreated": "2023-11-07T05:31:56Z",
"lastPreviewPdf": "<string>"
}
}Automations
Update automation
Updates an existing automation’s settings. Only the fields included in the request body are updated.
PUT
/
updateAutomation
Update automation
curl --request PUT \
--url https://api.docsautomator.co/updateAutomation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "Updated Invoice Generator",
"isActive": true,
"locale": "en-us"
}
'{
"message": "Success",
"updatedAutomation": {
"_id": "<string>",
"title": "<string>",
"dataSource": {
"name": "<string>"
},
"dataSourceName": "<string>",
"docTemplateLink": "<string>",
"newDocumentNameField": "<string>",
"isActive": true,
"saveGoogleDoc": true,
"locale": "<string>",
"formatNumbersWithLocale": true,
"pdfExpiration": "<string>",
"dateCreated": "2023-11-07T05:31:56Z",
"lastPreviewPdf": "<string>"
}
}Authorizations
API key from your workspace settings. Pass as Authorization: Bearer <key> or X-API-Key: <key>. Find it at app.docsautomator.co/settings/workspace/api.
Query Parameters
The automation ID to update.
Body
application/json
Automation name.
Google Doc template URL.
Field name or formula for generated document names.
Whether the automation is active.
Save a Google Doc copy alongside the PDF.
Google Drive folder URL for saved documents.
Locale for date and number formatting (e.g., en-us, de-de).
Format numbers using the automation's locale.
PDF expiration period. never means PDFs never expire, immediate means they expire right away, and other values set the expiration window.
Available options:
never, immediate, oneday, threedays, oneweek, twoweeks, onemonth, threemonths, sixmonths, oneyear Show child attributes
Show child attributes
Last modified on May 26, 2026
⌘I