Skip to main content
POST
/
templates
Add a new template.
curl --request POST \
  --url https://1-some-client.some-server.healvi-chat/third-party/v1/templates \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 123,
  "category": "<string>",
  "name": "<string>",
  "text": "Name of profile is $name$.",
  "created_at": "2023-01-01T12:00:00Z",
  "updated_at": "2023-01-01T12:00:00Z"
}'
{
  "id": 123,
  "category": "<string>",
  "name": "<string>",
  "text": "Name of profile is $name$.",
  "created_at": "2023-01-01T12:00:00Z",
  "updated_at": "2023-01-01T12:00:00Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Template to store text with placeholders.

id
integer

Internal ID.

category
string | null

Category or directory to organize templates one level deep.

name
string

Name of template.

text
string

Template text with placeholders.

Example:

"Name of profile is $name$."

created_at
string<date-time> | null

Datetime when template was created.

Example:

"2023-01-01T12:00:00Z"

updated_at
string<date-time> | null

Datetime when template was last updated.

Example:

"2023-01-01T12:00:00Z"

Response

200 - application/json

Success

Template to store text with placeholders.

id
integer

Internal ID.

category
string | null

Category or directory to organize templates one level deep.

name
string

Name of template.

text
string

Template text with placeholders.

Example:

"Name of profile is $name$."

created_at
string<date-time> | null

Datetime when template was created.

Example:

"2023-01-01T12:00:00Z"

updated_at
string<date-time> | null

Datetime when template was last updated.

Example:

"2023-01-01T12:00:00Z"