Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
Account to apply operations to
ID of template
Response
successful operation
The response is of type object
.
curl -X PUT \
https://api.sakari.io/v1/accounts/{{ACCOUNT_ID}}/templates/{{TEMPLATE_ID}} \
-H 'Authorization: Bearer {{TOKEN}}' \
-H 'Content-Type: application/json' \
-d '{
"name": "Test Template",
"template": "Hi {{ firstName }}, Welcome to Sakari!",
"type": "SMS"
}'
{
"success": true,
"data": {
"id": "<string>",
"name": "<string>",
"type": "SMS",
"template": "Hi {{{firstName}}}. Grab 20% off today only at ABC Shoes",
"media": [
{
"url": "<string>",
"type": "<string>",
"name": "<string>",
"filename": "<string>"
}
]
}
}
curl -X PUT \
https://api.sakari.io/v1/accounts/{{ACCOUNT_ID}}/templates/{{TEMPLATE_ID}} \
-H 'Authorization: Bearer {{TOKEN}}' \
-H 'Content-Type: application/json' \
-d '{
"name": "Test Template",
"template": "Hi {{ firstName }}, Welcome to Sakari!",
"type": "SMS"
}'
{
"success": true,
"data": {
"id": "<string>",
"name": "<string>",
"type": "SMS",
"template": "Hi {{{firstName}}}. Grab 20% off today only at ABC Shoes",
"media": [
{
"url": "<string>",
"type": "<string>",
"name": "<string>",
"filename": "<string>"
}
]
}
}
The access token received from the authorization server in the OAuth 2.0 flow.
Account to apply operations to
ID of template
successful operation
The response is of type object
.