Templates

Update a template

Edits the draft; the published version stays until the next publish.

PATCH
/templates/{id}

Edits the draft; the published version stays until the next publish.

Authorization

bearer
headerAuthorizationBearer <token>

Path Parameters

id*string

The template's id or alias

Request Body

application/json
  1. body

Fields left out stay as they are; null clears an optional one (an exx rule: Resend documents no way to clear a field).

alias?string|null
from?string|null
html?string

Not null.

name?string

Not null.

reply_to?array<string>|null
subject?string|null
text?string|null
variables?array<>|

Replaces every declared variable; null removes them all.

Response Body

Success

application/json
  1. response
id*string
Formatuuid
object*string
Example Request
curl -X PATCH 'https://api.exx.sh/templates/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "object": "string"}