curl --request PATCH \
--url https://spectrum.photon.codes/projects/{projectId}/whatsapp-business/accounts/{accountId}/templates/{templateId} \
--header 'Content-Type: application/json' \
--data '
{
"components": [
{
"type": "<string>"
}
],
"messageSendTtlSeconds": 123
}
'{
"succeed": true,
"data": {
"templateId": "<string>",
"success": true
}
}Edits an existing message template. Only components, category, and messageSendTtlSeconds are editable — Meta forbids changing name and language. Empty body returns 400. Editing is subject to Meta’s template lifecycle: APPROVED templates can edit components/category (category changes require re-approval), REJECTED templates can edit any field, PAUSED templates have limited edits.
curl --request PATCH \
--url https://spectrum.photon.codes/projects/{projectId}/whatsapp-business/accounts/{accountId}/templates/{templateId} \
--header 'Content-Type: application/json' \
--data '
{
"components": [
{
"type": "<string>"
}
],
"messageSendTtlSeconds": 123
}
'{
"succeed": true,
"data": {
"templateId": "<string>",
"success": true
}
}Documentation Index
Fetch the complete documentation index at: https://docs.photon.codes/docs/llms.txt
Use this file to discover all available pages before exploring further.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$1^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Was this page helpful?