logo
TemplatesUpdate template
Templates

Update template

Update template name, content, or shortcut. All fields are optional.

curl -X PATCH "https://api.sendkit.ai/v1/templates/example_string" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "name": "Updated Outreach Template",
  "content": "<p>Hi {{firstName}},</p><p>Updated content here...</p>",
  "shortcut": "B"
}'
{
  "success": true,
  "data": {
    "_id": "666f1a2b3c4d5e6f7a8b9c0d",
    "name": "Updated Outreach Template",
    "content": "<p>Hi {{firstName}},</p><p>Updated content here...</p>",
    "shortcut": "B",
    "createdAt": "2025-06-10T10:30:00.000Z",
    "updatedAt": "2025-06-20T09:00:00.000Z"
  }
}
PATCH
/v1/templates/{id}
PATCH
API Key (header: X-Api-Key)
X-Api-Keystring
Required

Platform API key (sk_user_...) or Workspace API key (sk_...)

Platform API key (sk_user_...) or Workspace API key (sk_...)
Bearer Token
Bearer Tokenstring
Required

API key as Bearer token

API key as Bearer token
Content-Typestring
Required

The media type of the request body

Options: application/json
namestring

Template name

contentstring

Template HTML content (cannot be empty)

shortcutstring

Single uppercase letter (A-Z) or empty string to remove shortcut

Pattern: ^[A-Z]$
Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-Api-Keystring
Required

API Key for authentication. Platform API key (sk_user_...) or Workspace API key (sk_...)

header
Authorizationstring
Required

Bearer token. API key as Bearer token

Path Parameters

idstring
Required

Resource ID

Body

application/json
namestring

Template name

contentstring

Template HTML content (cannot be empty)

shortcutstring

Single uppercase letter (A-Z) or empty string to remove shortcut

Responses

successboolean
dataobject