cURL
curl --request PUT \ --url http://localhost/api/admin/content/templates \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "workspaceId": "<string>", "name": "<string>", "id": "<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", "updatedAt": 123, "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>" } } } }
Create or update message template
Mobile push template resource
Show child attributes
MobilePush
Default Response
Email