PUT
/
notifications
/
templates
/
{id}
curl --request PUT \
  --url https://api.pxyz.dev/api/v0/notifications/templates/{id} \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "body": "<string>",
  "subject": "<string>"
}'
{
  "id": "<string>",
  "tenantId": "<string>",
  "name": "<string>",
  "body": "<any>",
  "subject": "<string>",
  "type": "email",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Path Parameters

id
string
required

Body

application/json
name
string
body
string
subject
string | null

Response

200
application/json
Successful response
id
string
required
tenantId
string
required
name
string
required
type
enum<string>
required
Available options:
email,
sms,
push,
webhook,
inapp,
chat
createdAt
string
required
updatedAt
string
required
body
any
subject
string | null