Method
PUT /v1/contract-templates/:id
Path Parameters
Contract template ID.
Body Parameters
Headers
Bearer token (requires
contract-templates:write).application/jsoncurl -X PUT "https://api.voyantcloud.com/v1/contract-templates/ct_01J0BE7Z3S494F9D4T3E2QJ0XR" \
-H "Authorization: Bearer $VOYANT_API_KEY" \
-H "content-type: application/json" \
-d '{
"name": "Customer Master Agreement (2025)",
"active": true,
"translation": {
"locale": "fr",
"bodyHtml": "<p>Version 2025 pour {{buyer.name}}.</p>",
"variables": {
"buyer.name": "Nom légal du client"
}
}
}'
{
"template": {
"id": "ct_01J0BE7Z3S494F9D4T3E2QJ0XR",
"workspaceId": "ws_01HZYPM2QF2R8X9SZQ0J9SYBCN",
"name": "Customer Master Agreement (2025)",
"type": "customer",
"description": null,
"templateJson": {
"sections": [
{
"type": "paragraph",
"text": "Updated clause"
}
]
},
"active": true,
"createdBy": null,
"createdAt": "2025-01-10T11:08:44.000Z",
"updatedAt": "2025-03-22T09:52:10.000Z"
}
}
Update contract template metadata, JSON payload, or add/edit translations.
PUT /v1/contract-templates/:id
Show Translation object
contract-templates:write).application/jsoncurl -X PUT "https://api.voyantcloud.com/v1/contract-templates/ct_01J0BE7Z3S494F9D4T3E2QJ0XR" \
-H "Authorization: Bearer $VOYANT_API_KEY" \
-H "content-type: application/json" \
-d '{
"name": "Customer Master Agreement (2025)",
"active": true,
"translation": {
"locale": "fr",
"bodyHtml": "<p>Version 2025 pour {{buyer.name}}.</p>",
"variables": {
"buyer.name": "Nom légal du client"
}
}
}'
{
"template": {
"id": "ct_01J0BE7Z3S494F9D4T3E2QJ0XR",
"workspaceId": "ws_01HZYPM2QF2R8X9SZQ0J9SYBCN",
"name": "Customer Master Agreement (2025)",
"type": "customer",
"description": null,
"templateJson": {
"sections": [
{
"type": "paragraph",
"text": "Updated clause"
}
]
},
"active": true,
"createdBy": null,
"createdAt": "2025-01-10T11:08:44.000Z",
"updatedAt": "2025-03-22T09:52:10.000Z"
}
}
locale overwrites the existing localized body and metadata.