POST
/
v1
/
templates
curl --request POST \
  --url https://api.pulze.ai/v1/templates/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "picture": "<string>",
  "description": "<string>",
  "visibility": "<string>",
  "category": "<string>",
  "is_active": true,
  "submitted": false,
  "added_on": "2023-11-07T05:31:56Z",
  "settings": {},
  "conversations": [
    {}
  ],
  "datasources": [
    {}
  ],
  "collections": [
    {}
  ]
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "picture": "<string>",
  "description": "<string>",
  "visibility": "<string>",
  "category": "<string>",
  "is_active": true,
  "submitted": false,
  "added_on": "2023-11-07T05:31:56Z",
  "settings": {},
  "conversations": [
    {}
  ],
  "datasources": [
    {}
  ],
  "collections": [
    {}
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json
id
string
required
name
string
required

Name of the template

visibility
string
required

Visibility of the template (e.g., 'public', 'private')

category
string | null
required

Category of the template (e.g., 'featured', 'private')

org_id
string | null

ID of the organization the template belongs to

picture
string | null

Image URL of the template

description
string | null

Description of the tempalte

is_active
boolean
default:true

Whether the template is active

submitted
boolean
default:false

Whether the template is submitted as a public template

added_on
string

The creation timestamp of the template

settings
object | null

Template settings

conversations
object[] | null

List of conversations in the template

datasources
object[] | null

List of datasources in the template

collections
object[] | null

List of collections in the template

Response

201
application/json
Successful Response
id
string
required
name
string
required

Name of the template

visibility
string
required

Visibility of the template (e.g., 'public', 'private')

category
string | null
required

Category of the template (e.g., 'featured', 'private')

org_id
string | null

ID of the organization the template belongs to

picture
string | null

Image URL of the template

description
string | null

Description of the tempalte

is_active
boolean
default:true

Whether the template is active

submitted
boolean
default:false

Whether the template is submitted as a public template

added_on
string

The creation timestamp of the template

settings
object | null

Template settings

conversations
object[] | null

List of conversations in the template

datasources
object[] | null

List of datasources in the template

collections
object[] | null

List of collections in the template