curl --request PUT \
--url http://localhost/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
}
Create or update message template
curl --request PUT \
--url http://localhost/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
}
Default Response
The response is of type object
.