Rename a template or change its body
PATCH
/api/v1/templates/{templateId}A body change raises the version. Sent and scheduled messages keep their text.
Bearer key, test or live
Parameters
templateIdstring · uuidpathrequiredRequest body
namestringbodystringResponses
200The template.404The template is absent or inaccessible.curl -X PATCH 'https://staging.useline.io/api/v1/templates/b2e0c7d4-1a9f-4c3e-8d6b-5f2a1e9c7d30' \
-H "Authorization: Bearer $LINE_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"body": "Hi {{first_name}}, we'll see you on {{date}}."
}'