Skip to main content
PATCH
Update an individual task within a script. Modify questions, instructions, qualifying questions, or soft-delete a task from the interview flow.
questions and qualifying_questions can only be updated on tasks that support them. Check the needed_variables array in the Get Script response to see which fields are editable per task.
At least one field must be provided. All fields are optional.

Authorizations

X-API-KEY
string
header
required

Your Classet API key. Create and rotate keys in Settings → API.

Path Parameters

taskId
string
required

The ID of the task to update.

Body

application/json
questions
string[]

Questions to ask during this task. Replaces existing questions. Only for tasks where needed_variables includes "task.questions".

removed
boolean

Set to true to skip this task during interviews. Set back to false to re-enable.

qualifying_questions
object[]

Pass/fail questions. Each element has question (string) and disqualifyIf (string — the answer that triggers disqualification, e.g. "no"). Only for tasks where needed_variables includes "qualifying_questions".

instructions
string

Additional instructions for the AI agent during this task. Use this to guide the agent's behavior (e.g. "Probe for specifics on commercial vs residential experience").

name
string

Display name of the task.

description
string

Description of what the task covers.

order
integer

Position in the interview flow (0-indexed). Use Reorder Tasks to update multiple tasks at once.

Response

Updated

data
object
required