Skip to main content
PATCH

Authorizations

Authorization
string
header
required

Pass Authorization: Bearer <credential>, where the credential is either:

  • an API key (sk_…), generated by an organization admin in Settings, for scripts and automation;
  • an access token from tth auth login (the TalkToHumans CLI), which any member of the workspace can use.

Both resolve to the same organization and user. A login token acts in the user's workspace: one with no workspace yet returns 403 workspace_setup_required, and one in several workspaces returns 403 forbidden (use an API key instead).

Path Parameters

template_id
string
required

Template ID returned by GET /v1/templates or POST /v1/templates.

Body

application/json

Provide at least one of name, content, or steps. Omitted fields are unchanged.

name
string

Template name shown in TalkToHumans.

Required string length: 1 - 200
content
string

Plain-text message. Message templates only.

Minimum string length: 1
steps
object[]

Replacement for all steps, including their attachments. Sequence templates only.

Minimum array length: 1

Response

Template updated.

data
object
required