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
workspaceId
string
required
name
string
required
id
string
definition
object

Mobile push template resource

draft
object | null

Mobile push template resource

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

draft
object

Mobile push template resource