Skip to main content
PATCH
/
templates
/
{id}
Update a template draft
curl --request PATCH \
  --url https://api.sendrealm.com/templates/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "status": 123,
  "error": {
    "code": "<string>",
    "message": "<string>",
    "details": null
  }
}

Update an email template draft

{
  "name": "Cart Recovery Email",
  "description": "Used after abandoned checkout events.",
  "subject_template": "Complete your order, {{first_name}}",
  "preview_text": "Your items are still reserved.",
  "editor_json": {
    "type": "doc",
    "content": []
  },
  "rendered_html": "<p>Your items are still reserved.</p>",
  "rendered_text": "Your items are still reserved."
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

Body

application/json

The body is of type object.

Response

Template updated