Locking the content of your template prevents any further edits, ensuring that the current version remains unchanged until it is unlocked. This can be particularly useful when you have finalized a template and want to prevent accidental modifications.
In contrast, unlocking the content of your template allows you to make changes to the template again.
You can use the following endpoints to lock and unlock your templates.
Endpoint: POST https://api.mailjet.com/v1/REST/templates/:id/contents/lock
URL Parameters
id = The ID of the template.
curl --request POST \
--url https://api.mailjet.com/v1/rest/templates/1/contents/lock \
--header 'Authorization: Bearer 612d5125131d406081abb9cd2afdc4e3' \
--header 'Content-Type: application/json' \' Status Code 204