Update a task script

Update a task script's script or enabled. The copilot and event cannot be changed.

The script runs on every task session of the copilot, so a change takes effect on the next session that starts or finishes.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required

Identifier

Body Params
integer
enum

1 runs the script, 0 keeps it stored but off. Defaults to 0 on create.

Allowed:
string

JavaScript run on the script server

string
enum

When the script runs. Set on create only.

  • task_started: a task session starts
  • task_finished: a task session is finished
Allowed:
integer

Product ID

Responses

403

The caller can't edit this copilot

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json