Skip to main content
PUT
/
api
/
v1
/
dm-templates
/
{id}
Update DM Template
curl --request PUT \
  --url https://www.catchthegoodones.com/api/v1/dm-templates/{id}
{
  "template": {
    "id": 1,
    "name": "Updated intro",
    "messageBody": "Hey! Thanks for following. Let me know if you have any questions.",
    "createdAt": "2026-04-10T12:00:00.000Z",
    "updatedAt": "2026-04-17T12:00:00.000Z"
  }
}
Updates an existing DM template. Both fields are required.

Headers

HeaderRequiredDescription
AuthorizationYesBearer ctgo_your_api_key_here
Content-TypeYesapplication/json

Path parameters

ParameterTypeDescription
idintegerThe template ID

Body

FieldTypeRequiredDescription
namestringYesTemplate name (1-100 characters). Must be unique.
messageBodystringYesMessage content (1-2000 characters)

Example

curl -X PUT https://www.catchthegoodones.com/api/v1/dm-templates/1 \
  -H "Authorization: Bearer ctgo_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{"name": "Updated intro", "messageBody": "Hey! Thanks for following. Let me know if you have any questions."}'

Response

{
  "template": {
    "id": 1,
    "name": "Updated intro",
    "messageBody": "Hey! Thanks for following. Let me know if you have any questions.",
    "createdAt": "2026-04-10T12:00:00.000Z",
    "updatedAt": "2026-04-17T12:00:00.000Z"
  }
}