PUT
/
api
/
admin
/
content
/
templates
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
id
string
required
name
string
definition
object

Mobile push template resource

draft
object | null

Mobile push template resource

Response

200 - application/json
workspaceId
string
required
id
string
required
name
string
required
type
required
Available options:
Email
definition
object

Mobile push template resource

draft
object

Mobile push template resource

updatedAt
number
required