Skip to main content
PUT
/
task-templates
/
{template_id}
Update Template
curl --request PUT \
  --url https://api.example.com/task-templates/{template_id}/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "instruction": "<string>",
  "assignee": "<string>",
  "context": {
    "entities": []
  },
  "notification_settings": [
    {
      "user_ids": [
        "<string>"
      ],
      "method": "EMAIL"
    }
  ]
}
'
{
  "instruction": "<string>",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "organisation_id": "<string>",
  "schedule_enabled": true,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "name": "<string>",
  "assignee": "<string>",
  "context": {
    "entities": []
  },
  "notification_settings": [
    {
      "user_ids": [
        "<string>"
      ],
      "method": "EMAIL"
    }
  ],
  "cron_schedule": "<string>",
  "schedule_start_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

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

Headers

Api-key
string | null

Path Parameters

template_id
string<uuid>
required

Body

application/json
name
string | null
instruction
string | null
assignee
string | null
context
ConversationContext · object
notification_settings
(EmailNotification · object | SlackNotification · object)[] | null

Response

Successful Response

instruction
string
required
id
string<uuid>
required
organisation_id
string
required
schedule_enabled
boolean
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
name
string | null
assignee
string | null
context
ConversationContext · object
notification_settings
(EmailNotification · object | SlackNotification · object)[] | null
cron_schedule
string | null
schedule_start_at
string<date-time> | null