Skip to main content
PUT
/
api
/
admin
/
content
/
templates
cURL
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
}

Body

application/json
workspaceId
string
required
name
string
required
id
string
definition
object

Mobile push template resource

  • Option 1
  • Option 2
  • Option 3
  • Option 4
  • Option 5
draft
object | null

Mobile push template resource

  • Option 1
  • Option 2
  • Option 3
  • Option 4
  • Option 5

Response

200 - application/json

Default Response

workspaceId
string
required
id
string
required
name
string
required
type
required
Available options:
Email
updatedAt
number
required
definition
object

Mobile push template resource

  • Option 1
  • Option 2
  • Option 3
  • Option 4
  • Option 5
draft
object

Mobile push template resource

  • Option 1
  • Option 2
  • Option 3
  • Option 4
  • Option 5
I