Skip to main content
PATCH
/
projects
/
{projectId}
/
whatsapp-business
/
accounts
/
{accountId}
/
templates
/
{templateId}
Edit a WhatsApp Business message template
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.

Path Parameters

accountId
string<uuid>
required
Pattern: ^([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)$
templateId
string
required
Minimum string length: 1
projectId
string<uuid>
required
Pattern: ^([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)$

Body

components
object[]
Minimum array length: 1
category
enum<string>
Available options:
MARKETING,
UTILITY,
AUTHENTICATION
messageSendTtlSeconds
integer
Required range: x <= 9007199254740991
{key}
any

Response

200 - application/json

Response for status 200

succeed
boolean
required
data
object
required