Skip to main content
PATCH
/
templates
/
{id}
Update an existing Template
curl --request PATCH \
  --url https://commerce.driv.ly/api/templates/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>",
  "type": "<string>",
  "messageText": "<string>",
  "subject": "<string>"
}
'
{
  "data": {
    "id": "<string>",
    "type": "<string>",
    "messageText": "<string>",
    "subject": "<string>"
  },
  "success": true
}

Path Parameters

id
string
required

Template is uniquely identified by id

Query Parameters

depth
integer

The number of levels of related objects to include in the response

Body

application/json
id
string

Template is uniquely identified by id

type
string

Template has Template Type

messageText
string

Template has Message Text

subject
string

Template has Subject

Response

Template Updated

data
Template · object
success
boolean