Reference / Settings

create or update one override. Validated against the catalog; emits `message_template.updated`.

PUT /v1/applications/{id}/templates
Secret API key operationId: upsert

Authorization

Server-to-server. Send a secret key as a Bearer token plus the x-application-id header.

Path parameters

  • id string<uuid> required

    Application id

Request body · required

  • body string required
  • channel string required
  • locale string required
  • subject string
  • template string required

Responses

200 Saved
{
  "data": {
    "body": "string",
    "channel": "string",
    "id": "018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f",
    "locale": "string",
    "subject": "string",
    "template": "string",
    "updated_at": "2026-01-15T09:30:00Z"
  },
  "error": {
    "code": "string",
    "message": "string"
  },
  "meta": {
    "timestamp": "string"
  },
  "success": false
}
422 Unknown template or invalid locale/body

Request

curl -X PUT "http://localhost:8080/v1/applications/018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f/templates" \
  -H "Content-Type: application/json" \
  -d '{
  "body": "string",
  "channel": "string",
  "locale": "string",
  "subject": "string",
  "template": "string"
}'

Try it

live request
PUT http://localhost:8080/v1/applications/018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f/templates

Path parameters

Request body

application/json