API Reference
PUT /api/admin/content/templates
API Reference
- POSTPOST /api/public/apps/identify
- POSTPOST /api/public/apps/track
- POSTPOST /api/public/apps/page
- POSTPOST /api/public/apps/screen
- POSTPOST /api/public/apps/batch
- POSTPOST /api/public/webhooks/segment
- GETGET /api/admin/content/templates
- PUTPUT /api/admin/content/templates
- DELDELETE /api/admin/content/templates
- GETGET /api/admin/segments/
- PUTPUT /api/admin/segments/
- DELDELETE /api/admin/segments/
- GETGET /api/admin/user-properties/
- PUTPUT /api/admin/user-properties/
- DELDELETE /api/admin/user-properties/
- GETGET /api/admin/journeys/
- PUTPUT /api/admin/journeys/
- DELDELETE /api/admin/journeys/
- PUTPUT /api/public/subscription-management/user-subscriptions
- GETGet /api/admin/users/subscriptions
- POSTPOST /api/admin/users/
- DELDELETE /api/admin/users/
- GETGET /api/admin/events/
- POSTPOST /api/admin/broadcasts/execute
- PUTPUT /api-l/admin/workspaces/child
- DELDELETE /api-l/admin/workspaces
- GETGET /api-l/admin/workspaces/
- POSTPOST /api-l/sessions/
API Reference
PUT /api/admin/content/templates
Create or update message template
PUT
/
api
/
admin
/
content
/
templates
curl --request PUT \
--url http://localhost:3001/api/admin/content/templates \
--header 'Content-Type: application/json' \
--data '{
"workspaceId": "<string>",
"id": "<string>",
"name": "<string>",
"definition": {
"type": "MobilePush",
"title": "<string>",
"body": "<string>",
"imageUrl": "<string>",
"android": {
"notification": {
"channelId": "<string>"
}
}
},
"draft": {
"type": "MobilePush",
"title": "<string>",
"body": "<string>",
"imageUrl": "<string>",
"android": {
"notification": {
"channelId": "<string>"
}
}
}
}'
{
"workspaceId": "<string>",
"id": "<string>",
"name": "<string>",
"type": "Email",
"definition": {
"type": "MobilePush",
"title": "<string>",
"body": "<string>",
"imageUrl": "<string>",
"android": {
"notification": {
"channelId": "<string>"
}
}
},
"draft": {
"type": "MobilePush",
"title": "<string>",
"body": "<string>",
"imageUrl": "<string>",
"android": {
"notification": {
"channelId": "<string>"
}
}
},
"updatedAt": 123
}
Body
application/json
Response
200
application/json
Default Response
Available options:
Email
curl --request PUT \
--url http://localhost:3001/api/admin/content/templates \
--header 'Content-Type: application/json' \
--data '{
"workspaceId": "<string>",
"id": "<string>",
"name": "<string>",
"definition": {
"type": "MobilePush",
"title": "<string>",
"body": "<string>",
"imageUrl": "<string>",
"android": {
"notification": {
"channelId": "<string>"
}
}
},
"draft": {
"type": "MobilePush",
"title": "<string>",
"body": "<string>",
"imageUrl": "<string>",
"android": {
"notification": {
"channelId": "<string>"
}
}
}
}'
{
"workspaceId": "<string>",
"id": "<string>",
"name": "<string>",
"type": "Email",
"definition": {
"type": "MobilePush",
"title": "<string>",
"body": "<string>",
"imageUrl": "<string>",
"android": {
"notification": {
"channelId": "<string>"
}
}
},
"draft": {
"type": "MobilePush",
"title": "<string>",
"body": "<string>",
"imageUrl": "<string>",
"android": {
"notification": {
"channelId": "<string>"
}
}
},
"updatedAt": 123
}