Skip to main content
PUT
/
ott
/
templates
/
{id}
Update OTT template
curl --request PUT \
  --url https://api-message.nativehub.live/api/v1/ott/templates/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Updated Welcome Message",
  "body": "Hi {{name}}, thanks for joining us!"
}
'
{
  "id": "a9b0c1d2-e3f4-5678-ab90-123456789012",
  "tenant_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
  "channel_id": "f8a9b0c1-d2e3-4567-fa89-012345678901",
  "name": "Welcome Message",
  "body": "Hello {{name}}, welcome to our service!",
  "variables": {
    "name": "string"
  },
  "status": "approved",
  "created_at": "2026-02-02T09:00:00Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

OTT Template ID

Body

application/json
name
string
body
string
variables
object

Response

OTT template updated successfully

id
string<uuid>
tenant_id
string<uuid>
channel_id
string<uuid>
name
string
body
string
variables
object
status
enum<string>
Available options:
pending,
approved,
rejected
created_at
string<date-time>