curl --request PATCH \
--url https://api.paubox.net/v1/{api_username}/dynamic_templates/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: multipart/form-data' \
--form 'data[name]=updated_welcome_template' \
--form data[body]='@example-file'{
"id": "template_123",
"name": "welcome_template",
"body": "Hello {{name}}, welcome to our service!",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Update an existing Handlebars template
curl --request PATCH \
--url https://api.paubox.net/v1/{api_username}/dynamic_templates/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: multipart/form-data' \
--form 'data[name]=updated_welcome_template' \
--form data[body]='@example-file'{
"id": "template_123",
"name": "welcome_template",
"body": "Hello {{name}}, welcome to our service!",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Documentation Index
Fetch the complete documentation index at: https://docs.paubox.com/llms.txt
Use this file to discover all available pages before exploring further.
Paubox API uses a custom token format in the Authorization header.
IMPORTANT: You must prefix your API key with "Token token="
Format: Authorization: Token token=YOUR_API_KEY_HERE
Example: Authorization: Token token=9e5b092b632445b8f570c62ae54f30fda1044305
Do NOT use just the API key alone or Bearer token format.
Template ID to update
Template updated successfully