Partially update a stored template
Updates one or more fields of a stored template. Only the fields included in the request body are changed; omitted fields keep their stored values, is_active included. This is the operation to use to reactivate a record that was deleted, by sending is_active as true.
Send language together with name whenever the name changes: a request that carries name without language cannot complete the uniqueness check and fails with a server error.
A non-empty sites array replaces the stored sites completely rather than adding to them, while an omitted or empty array leaves them untouched.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The unique identifier of the stored template.
Request body for partially updating a stored template. Send only the fields you want to change; every field is optional and omitted fields keep their stored values, is_active included.
Send language together with name whenever the name changes — a request carrying name without language fails with a server error.
The path of the template to override. Send language in the same request when this field is present.
emails/orders/completed.htmlThe template source. May not be empty.
The language the record applies to.
tr-trWhether the record is used when the template is rendered. Send true to bring back a record that was deleted.
trueIdentifiers of the sites the record applies to. A non-empty array replaces the stored sites; an empty array leaves them untouched.
[1]The updated stored template.
A stored template returned by the API. The full template source is part of the response, and deactivated records are returned in the same shape as active ones.
Unique identifier of the stored template.
The path of the template being overridden, as it was stored — without surrounding whitespace and without a leading slash.
emails/orders/completed.htmlThe template source, returned exactly as it was stored.
{% extends "emails/base.html" %} {% block content %}<h1>Your order is complete.</h1>{% endblock %}The language the record applies to, as one of the language codes configured for the deployment.
tr-trWhether the record is used when the template is rendered. false on a record that was deleted through this API.
trueIdentifiers of the sites the record is bound to. Empty on a record that is bound to no site, which is never rendered.
[1]When the record was created.
When the record was last modified.
The request contains invalid or missing data.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
No stored template exists with the given identifier. Deactivated records are still retrievable, so this answer means the record does not exist at all.
PATCH /api/v1/remote/1/templates/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 104
{
"name": "emails/orders/completed.html",
"content": "text",
"language": "tr-tr",
"is_active": true,
"sites": [
1
]
}{
"pk": 1,
"name": "emails/orders/completed.html",
"content": "{% extends \"emails/base.html\" %}\n{% block content %}<h1>Your order is complete.</h1>{% endblock %}",
"language": "tr-tr",
"is_active": true,
"sites": [
1
],
"created_date": "2026-01-01T00:00:00.000Z",
"modified_date": "2026-01-01T00:00:00.000Z"
}Last updated
Was this helpful?

