Skip to main content
PUT
Update content template

Authorizations

API-KEY
string
header
required

Path Parameters

workspace_id
integer
required
Required range: x >= 1
Example:

123

id
integer
required
Required range: x >= 1
Example:

123

Body

application/json

Content template params

default
boolean
name
string
Maximum string length: 100
Example:

"Updated Name"

reference_text
string

Reference content (UTF-8). 1–25,000 characters; must contain at least 200 words.

Stored and returned verbatim — no sanitization or normalization. Markdown is the recommended format; predefined Surfer templates use Markdown, and the in-app editor parses this field as Markdown.

The 200-word minimum is counted by a tokenizer over the raw string, so markup characters may or may not contribute to the count.

Maximum string length: 25000
Example:

"Updated content..."

Response

Updated content template

inserted_at
string<date-time>
required
Example:

"2024-04-12T15:23:45Z"

default
boolean
required
Example:

false

id
integer
required
Required range: x >= 1
Example:

123

name
string
required
Example:

"My Custom Template"

reference_text
string
required

Stored verbatim; Markdown recommended.

Example:

"Template content..."

updated_at
string<date-time>
Example:

"2024-06-01T09:17:33Z"