PUT
/
v1
/
email
/
templates
/
{template}
cURL
curl --request PUT \
  --url https://api.comm.com/api/v1/email/templates/{template} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "<string>",
  "updated_at": "<string>",
  "name": "<string>",
  "subject": "<string>",
  "body": "<string>",
  "type": "manual",
  "meta": {
    "instruction": "<string>",
    "max_times_used": 123,
    "texts_in_rotation": 123
  },
  "is_active": true
}'
{
  "id": "<string>",
  "team_id": "<string>",
  "name": "<string>",
  "subject": "<string>",
  "body": "<string>",
  "type": "<string>",
  "meta": [
    "<any>"
  ],
  "is_active": true,
  "deleted_at": "2023-11-07T05:31:56Z",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

template
string<uuid>
required

The template ID

Body

application/json

EmailCampaignTemplateDataRequest

name
string
required
subject
string
required
body
string
required
id
string<uuid> | null
created_at
string | null
updated_at
string | null
type
enum<string> | null
Available options:
manual,
generated
meta
object | null
is_active
boolean
default:true

Response

id
string
required
team_id
string
required
name
string
required
subject
string
required
body
string
required
type
string | null
required
meta
any[] | null
required
is_active
boolean
required
deleted_at
string<date-time> | null
required
created_at
string<date-time> | null
required
updated_at
string<date-time> | null
required