Reply TemplatesUpdate a reply template

Update a reply template

Only the fields you send change. Send "shortcut": null to clear the shortcut, and "isActive": true to restore a soft-deleted template.

curl -X PATCH "https://api.sendkit.ai/v1/reply-templates/664a1b2c3d4e5f6a7b8c9d0e" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -d '{
  "content": "<p>Updated body</p>"
}'
{
  "success": true,
  "data": {
    "_id": "example_string",
    "id": "example_string",
    "workspaceId": "example_string",
    "name": "John Doe",
    "content": "example_string",
    "shortcut": "P",
    "isActive": true,
    "usageCount": 25,
    "lastUsedAt": "2024-12-25T10:00:00Z",
    "createdBy": "example_string",
    "createdAt": "2024-12-25T10:00:00Z",
    "updatedAt": "2024-12-25T10:00:00Z"
  }
}
PATCH
/v1/reply-templates/{id}
PATCH
Base URLstring

Target server for requests. Edit to use your own host.

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_...)
path
idstring
Required

Reply template ID

Content-Typestring
Required

The media type of the request body

Options: application/json
namestring
Max length: 200
contentstring
Max length: 100000
shortcutstring
Pattern: ^[A-Za-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_...)

Path Parameters

idstring
Required

Reply template ID

Example:
664a1b2c3d4e5f6a7b8c9d0e

Responses

successboolean
dataobject