Skip to main content
PATCH
/
v1
/
templates
/
{id}
Update a template
curl --request PATCH \
  --url https://api.drin.run/v1/templates/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "subject": "<string>",
  "html": "<string>",
  "text": "<string>"
}
'
{
  "id": "<string>",
  "slug": "<string>",
  "name": "<string>",
  "subject": "<string>",
  "html": "<string>",
  "text": "<string>",
  "createdAt": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.drin.run/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Your Drin API key, sent as Authorization: Bearer <key>.

Path Parameters

id
string
required

Body

application/json
name
string
subject
string
html
string | null
text
string | null

Response

200 - application/json

The updated template.

id
string
slug
string | null
name
string
subject
string
html
string | null
text
string | null
createdAt
string<date-time>