PUT
/
rest
/
steps
/
{id}
curl --request PUT \
  --url https://copilotz.com/rest/steps/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Gather User Information",
  "description": "This step collects user information necessary for processing.",
  "instructions": "Collect the user'\''s location and preferences.",
  "submitWhen": "User has provided the location from where it wants to check the weather.",
  "job": 2,
  "next": 2
}'
{
  "name": "Gather User Information",
  "description": "This step collects user information necessary for processing.",
  "instructions": "Collect the user's location and preferences.",
  "submitWhen": "User has provided the location from where it wants to check the weather.",
  "job": 2,
  "next": 2
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
integer
required

Body

application/json

Request payload for creating or updating a step in a workflow.

name
string
required

Name of the step in the workflow.

Example:

"Gather User Information"

description
string
required

Description of what this step in the workflow should accomplish.

Example:

"This step collects user information necessary for processing."

instructions
string
required

Instructions provided to Copilotz for completing this step.

Example:

"Collect the user's location and preferences."

submitWhen
string
required

Condition under which Copilotz should consider this step complete and submit the final answer.

Example:

"User has provided the location from where it wants to check the weather."

job
integer

ID of the job that this step can override if it's specific.

Example:

2

next
integer

ID of the next step in the workflow upon successful submission.

Example:

2

Response

200 - application/json
Successful response

Response containing step details in a workflow.

name
string
required

Name of the step in the workflow.

Example:

"Gather User Information"

description
string
required

Description of what this step in the workflow should accomplish.

Example:

"This step collects user information necessary for processing."

instructions
string
required

Instructions provided to Copilotz for completing this step.

Example:

"Collect the user's location and preferences."

submitWhen
string
required

Condition under which Copilotz should consider this step complete and submit the final answer.

Example:

"User has provided the location from where it wants to check the weather."

job
integer

ID of the job that this step can override if it's specific.

Example:

2

next
integer

ID of the next step in the workflow upon successful submission.

Example:

2