curl -X PATCH https://api.classet.ai/v2/script-tasks/11 \ -H "X-API-KEY: your-api-key" \ -H "Content-Type: application/json" \ -d '{ "questions": [ "How many years of experience do you have?", "What types of systems have you worked on?", "Do you have experience with VRF systems?" ], "instructions": "Probe for specifics on commercial vs residential experience.", "qualifying_questions": [ { "question": "Do you have a valid driver'\''s license?", "disqualifyIf": "no" }, { "question": "Are you authorized to work in the US?", "disqualifyIf": "no" } ] }'
{ "data": { "task_id": 11 }}
Scripts
Update Script Task
Update questions, instructions, qualifying questions, or other fields on a script task. For questions and qualifying_questions, the task must support those fields (check needed_variables in the GET response).
PATCH
/
v2
/
script-tasks
/
{taskId}
curl -X PATCH https://api.classet.ai/v2/script-tasks/11 \ -H "X-API-KEY: your-api-key" \ -H "Content-Type: application/json" \ -d '{ "questions": [ "How many years of experience do you have?", "What types of systems have you worked on?", "Do you have experience with VRF systems?" ], "instructions": "Probe for specifics on commercial vs residential experience.", "qualifying_questions": [ { "question": "Do you have a valid driver'\''s license?", "disqualifyIf": "no" }, { "question": "Are you authorized to work in the US?", "disqualifyIf": "no" } ] }'
{ "data": { "task_id": 11 }}
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.
curl -X PATCH https://api.classet.ai/v2/script-tasks/11 \ -H "X-API-KEY: your-api-key" \ -H "Content-Type: application/json" \ -d '{ "questions": [ "How many years of experience do you have?", "What types of systems have you worked on?", "Do you have experience with VRF systems?" ], "instructions": "Probe for specifics on commercial vs residential experience.", "qualifying_questions": [ { "question": "Do you have a valid driver'\''s license?", "disqualifyIf": "no" }, { "question": "Are you authorized to work in the US?", "disqualifyIf": "no" } ] }'
{ "data": { "task_id": 11 }}
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".
Show child attributes
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
Show child attributes
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Classet API","colors":{"primary":"#A16207","light":"#EDB968","dark":"#A16207"},"logo":{"light":"https://mintcdn.com/classet/F7FrQ_OAFGMrT5Fg/logo/light.svg?fit=max\u0026auto=format\u0026n=F7FrQ_OAFGMrT5Fg\u0026q=85\u0026s=aa940697cace955dcf764ab40e61ee6e","dark":"https://mintcdn.com/classet/F7FrQ_OAFGMrT5Fg/logo/dark.svg?fit=max\u0026auto=format\u0026n=F7FrQ_OAFGMrT5Fg\u0026q=85\u0026s=2bd235026c6489ba56bc624a41ae4266"},"favicon":"https://mintcdn.com/classet/F7FrQ_OAFGMrT5Fg/favicon.ico?fit=max\u0026auto=format\u0026n=F7FrQ_OAFGMrT5Fg\u0026q=85\u0026s=093eeb6f17d708eb4387250ef77557f6","api":{"openapi":{"source":"openapi.json","overlays":["openapi.overlay.json"]},"mdx":{"auth":{"method":"key","name":"X-API-KEY"},"server":"https://api.classet.ai"}},"background":{"color":{"light":"#FFFDF9","dark":"#1C1917"}},"navbar":{"links":[{"href":"https://app.classet.ai","label":"Dashboard"}],"primary":{"type":"button","label":"Get API Key","href":"https://app.classet.ai/settings/developers"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/classet","website":"https://classet.ai"}},"seo":{"metatags":{"og:site_name":"Classet API Documentation","og:image":"https://www.classet.ai/og-image.png","twitter:site":"@classetai","robots":"noindex"},"indexing":"navigable"},"fonts":{"heading":{"family":"Lato","weight":700},"body":{"family":"Lato","weight":400}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Product","icon":"box","href":"https://www.classet.ai/product"},{"anchor":"Blog","icon":"newspaper","href":"https://www.classet.ai/blog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"classet","hasAudioNarration":false,"actualSubdomain":"classet","customDomains":[],"gitSource":{"type":"github","owner":"classet-trades","repo":"classet-monorepo","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":"","_id":"6b0fad66f1dbddd3a85d4e59"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b0fb149f1dbddd3a85d6bf2","clientVersion":"0.0.4410","searchFilterCounts":[{"language":"default","tag":"API Reference","count":65},{"language":"default","tag":"Documentation","count":23},{"language":"default","tag":"Guides","count":16},{"language":"default","tag":"Candidates","count":11},{"language":"default","tag":"Message Automations","count":9},{"language":"default","tag":"Scripts","count":9},{"language":"default","tag":"Applications","count":6},{"language":"default","tag":"Jobs","count":6},{"language":"default","tag":"Webhooks","count":5},{"language":"default","tag":"Calls","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[{"filePath":"custom.css","content":":root{--radius: 0px}button,input,select,textarea,[role=\"button\"],.card,code,pre,.accordion,[class*=\"rounded\"]{border-radius:0!important}pre{border-radius:0!important;border:1px solid #e5e5e5}.card,[class*=\"callout\"],[class*=\"note\"],[class*=\"warning\"],[class*=\"tip\"]{border-radius:0!important}[role=\"tablist\"] button,[role=\"tab\"]{border-radius:0!important}h1,h2,h3,h4,h5,h6{letter-spacing:-0.02em}p,li,td{letter-spacing:-0.01em}"}]}
{"page":{"pagePath":"api-reference/scripts/update-task","slug":"/api-reference/scripts/update-task","pageMetadata":{"title":"Update Script Task","openapi":"PATCH /v2/script-tasks/{taskId}","description":"Update questions, instructions, qualifying questions, or other fields on a script task. For questions and qualifying_questions, the task must support those fields (check needed_variables in the GET response).","href":"/api-reference/scripts/update-task"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Update questions, instructions, qualifying questions, or other fields on a script task. For questions and qualifying_questions, the task must support those fields (check needed_variables in the GET response).\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,..._provideComponents(),...props.components},{Note}=_components;if(!Note)_missingMdxReference(`Note`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Update an individual task within a script. Modify questions, instructions, qualifying questions, or soft-delete a task from the interview flow.`}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`questions`}),` and `,_jsx(_components.code,{children:`qualifying_questions`}),` can only be updated on tasks that support them. Check the `,_jsx(_components.code,{children:`needed_variables`}),` array in the `,_jsx(_components.a,{href:`/api-reference/scripts/get-script`,children:`Get Script`}),` response to see which fields are editable per task.`]})}),`\n`,_jsx(_components.p,{children:`At least one field must be provided. All fields are optional.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Update Script Task","openapi":"PATCH /v2/script-tasks/{taskId}","description":"Update questions, instructions, qualifying questions, or other fields on a script task. For questions and qualifying_questions, the task must support those fields (check needed_variables in the GET response).","href":"/api-reference/scripts/update-task"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Note,RequestExample,ResponseExample}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Note)_missingMdxReference(`Note`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Update an individual task within a script. Modify questions, instructions, qualifying questions, or soft-delete a task from the interview flow.`}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`questions`}),` and `,_jsx(_components.code,{children:`qualifying_questions`}),` can only be updated on tasks that support them. Check the `,_jsx(_components.code,{children:`needed_variables`}),` array in the `,_jsx(_components.a,{href:`/api-reference/scripts/get-script`,children:`Get Script`}),` response to see which fields are editable per task.`]})}),`\n`,_jsx(_components.p,{children:`At least one field must be provided. All fields are optional.`}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`21`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`21`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` PATCH`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.classet.ai/v2/script-tasks/11`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-API-KEY: your-api-key\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"questions\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"How many years of experience do you have?\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"What types of systems have you worked on?\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Do you have experience with VRF systems?\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"instructions\": \"Probe for specifics on commercial vs residential experience.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"qualifying_questions\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"question\": \"Do you have a valid driver'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\'`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'s license?\",`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"disqualifyIf\": \"no\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"question\": \"Are you authorized to work in the US?\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"disqualifyIf\": \"no\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`200`,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"task_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`11`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Update Script Task","openapi":"PATCH /v2/script-tasks/{taskId}","description":"Update questions, instructions, qualifying questions, or other fields on a script task. For questions and qualifying_questions, the task must support those fields (check needed_variables in the GET response).","href":"/api-reference/scripts/update-task"}}}},"mdxExtracts":{"tableOfContents":[],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"21\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> PATCH\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://api.classet.ai/v2/script-tasks/11\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"X-API-KEY: your-api-key\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"questions\": [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"How many years of experience do you have?\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"What types of systems have you worked on?\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Do you have experience with VRF systems?\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"instructions\": \"Probe for specifics on commercial vs residential experience.\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"qualifying_questions\": [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"question\": \"Do you have a valid driver'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\">\\'\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'s license?\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"disqualifyIf\": \"no\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"question\": \"Are you authorized to work in the US?\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"disqualifyIf\": \"no\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"200","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"5\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"task_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">11\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Scripts"],"summary":"Update a script task","description":"Update questions, instructions, qualifying questions, or other fields on a script task. For questions and qualifying_questions, the task must support those fields (check needed_variables in the GET response).","security":["08e69e0b-def3-426c-a1af-b5c0f0108aab"],"parameters":["978682cc-5f04-4654-955c-256442b1903e"],"requestBody":"4615ba5d-5bd0-472b-940f-78946248fe74","responses":{"200":"c8fa6a42-8c36-4006-a00c-0e03c6a6a019","400":"56459d4f-b4ac-4585-8bae-cc72b452a4a1","404":"4ca47b96-1e89-43fc-b104-bee58bdf02a7","500":"f6865127-87de-4ed7-8f96-98e8b00f9d85"},"method":"patch","type":"path","servers":["17839619-2618-4ac3-afba-460763bc66c5","00aa4118-4e11-4af9-b17e-be21516ad931"],"path":"/v2/script-tasks/{taskId}","baseUrlOptions":["https://api.classet.ai","http://localhost:8081"],"title":"Update a script task","codeSamples":[],"requiredOnlyExamples":false,"requestExamples":[{"dropdown":false,"language":"shellscript","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"shellscript","children":{"type":"code","key":null,"ref":null,"props":{"language":"shellscript","numberOfLines":"21","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#DCDCAA"},"children":"curl"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -X"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" PATCH"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" https://api.classet.ai/v2/script-tasks/11"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -H"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"X-API-KEY: your-api-key\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -H"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"Content-Type: application/json\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -d"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" '{"}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"questions\": ["}}}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"How many years of experience do you have?\","}}}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"What types of systems have you worked on?\","}}}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"Do you have experience with VRF systems?\""}}}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" ],"}}}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"instructions\": \"Probe for specifics on commercial vs residential experience.\","}}}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"qualifying_questions\": ["}}}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" {"}}}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"question\": \"Do you have a valid driver'"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":"\\'"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'s license?\","}}]}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"disqualifyIf\": \"no\""}}}},"\n",{"type":"span","key":"28","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" },"}}}},"\n",{"type":"span","key":"30","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" {"}}}},"\n",{"type":"span","key":"32","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"question\": \"Are you authorized to work in the US?\","}}}},"\n",{"type":"span","key":"34","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"disqualifyIf\": \"no\""}}}},"\n",{"type":"span","key":"36","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" }"}}}},"\n",{"type":"span","key":"38","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" ]"}}}},"\n",{"type":"span","key":"40","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" }'"}}}},"\n"]}}}},"filename":"cURL"}],"requestExampleType":"mdx","responseExamples":[{"dropdown":false,"language":"json","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"json","children":{"type":"code","key":null,"ref":null,"props":{"language":"json","numberOfLines":"5","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}}}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"data\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"task_id\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":"11"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" }"}}}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n"]}}}},"filename":"200"}],"responseExampleType":"mdx"},"dependencies":{"parameters":{"978682cc-5f04-4654-955c-256442b1903e":{"schema":{"type":"string","isRequired":true,"description":"The ID of the task to update.","uniqueKey":"","typeLabel":"string"},"required":true,"name":"taskId","in":"path","description":"The ID of the task to update."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"questions":{"type":"array","items":{"type":"string","uniqueKey":"questions.items.[INDEX]","typeLabel":"string"},"description":"Questions to ask during this task. Replaces existing questions. Only for tasks where `needed_variables` includes `\"task.questions\"`.","uniqueKey":"questions","typeLabel":"string[]"},"removed":{"type":"boolean","description":"Set to `true` to skip this task during interviews. Set back to `false` to re-enable.","uniqueKey":"removed","typeLabel":"boolean"},"qualifying_questions":{"type":"array","items":{"type":"object","properties":{"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"qualifying_questions.items.[INDEX].question","typeLabel":"string"},"disqualifyIf":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"qualifying_questions.items.[INDEX].disqualifyIf","typeLabel":"string"}},"required":["question","disqualifyIf"],"uniqueKey":"qualifying_questions.items.[INDEX]","typeLabel":"object"},"description":"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\"`.","uniqueKey":"qualifying_questions","typeLabel":"object[]"},"instructions":{"type":"string","description":"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\").","uniqueKey":"instructions","typeLabel":"string"},"name":{"type":"string","description":"Display name of the task.","uniqueKey":"name","typeLabel":"string"},"description":{"type":"string","description":"Description of what the task covers.","uniqueKey":"description","typeLabel":"string"},"order":{"type":"integer","description":"Position in the interview flow (0-indexed). Use [Reorder Tasks](/api-reference/scripts/reorder-tasks) to update multiple tasks at once.","uniqueKey":"order","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"questions":["\u003cstring>"],"removed":true,"qualifying_questions":[{"question":"\u003cstring>","disqualifyIf":"\u003cstring>"}],"instructions":"\u003cstring>","name":"\u003cstring>","description":"\u003cstring>","order":123}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"c8fa6a42-8c36-4006-a00c-0e03c6a6a019":{"description":"Updated","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"task_id":{"type":"integer","isRequired":true,"uniqueKey":"data.task_id","typeLabel":"integer"}},"required":["task_id"],"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"required":["data"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"task_id":123}}}},"exampleType":"generated"}},"exampleType":"generated"},"56459d4f-b4ac-4585-8bae-cc72b452a4a1":{"description":"Field not allowed for this task","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"Resource not found","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","enum":["not_found","validation_error","unauthorized","forbidden","insufficient_scope","restricted_key_unsupported","branch_out_of_scope","key_misconfigured","quota_exceeded","rate_limited","rate_limit_unavailable","conflict","idempotency_key_reuse","candidate_opted_out","recently_contacted","request_in_progress","unprocessable","bad_request","payload_too_large","internal_error","service_unavailable"],"example":"not_found","description":"Stable machine-readable error code.","uniqueKey":"code","typeLabel":"enum\u003cstring>"},"request_id":{"type":"string","example":"9f2c1d7e-4a3b-4c8d-9e0f-1a2b3c4d5e6f","description":"Request ID, also echoed in the X-Request-Id response header. Include it when reporting issues.","uniqueKey":"request_id","typeLabel":"string"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Resource not found","code":"not_found","request_id":"9f2c1d7e-4a3b-4c8d-9e0f-1a2b3c4d5e6f"}}},"exampleType":"generated"}},"exampleType":"generated"},"4ca47b96-1e89-43fc-b104-bee58bdf02a7":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"Resource not found","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","enum":["not_found","validation_error","unauthorized","forbidden","insufficient_scope","restricted_key_unsupported","branch_out_of_scope","key_misconfigured","quota_exceeded","rate_limited","rate_limit_unavailable","conflict","idempotency_key_reuse","candidate_opted_out","recently_contacted","request_in_progress","unprocessable","bad_request","payload_too_large","internal_error","service_unavailable"],"example":"not_found","description":"Stable machine-readable error code.","uniqueKey":"code","typeLabel":"enum\u003cstring>"},"request_id":{"type":"string","example":"9f2c1d7e-4a3b-4c8d-9e0f-1a2b3c4d5e6f","description":"Request ID, also echoed in the X-Request-Id response header. Include it when reporting issues.","uniqueKey":"request_id","typeLabel":"string"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Resource not found","code":"not_found","request_id":"9f2c1d7e-4a3b-4c8d-9e0f-1a2b3c4d5e6f"}}},"exampleType":"generated"}},"exampleType":"generated"},"f6865127-87de-4ed7-8f96-98e8b00f9d85":{"description":"Server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"Resource not found","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","enum":["not_found","validation_error","unauthorized","forbidden","insufficient_scope","restricted_key_unsupported","branch_out_of_scope","key_misconfigured","quota_exceeded","rate_limited","rate_limit_unavailable","conflict","idempotency_key_reuse","candidate_opted_out","recently_contacted","request_in_progress","unprocessable","bad_request","payload_too_large","internal_error","service_unavailable"],"example":"not_found","description":"Stable machine-readable error code.","uniqueKey":"code","typeLabel":"enum\u003cstring>"},"request_id":{"type":"string","example":"9f2c1d7e-4a3b-4c8d-9e0f-1a2b3c4d5e6f","description":"Request ID, also echoed in the X-Request-Id response header. Include it when reporting issues.","uniqueKey":"request_id","typeLabel":"string"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Resource not found","code":"not_found","request_id":"9f2c1d7e-4a3b-4c8d-9e0f-1a2b3c4d5e6f"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"08e69e0b-def3-426c-a1af-b5c0f0108aab":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-KEY","description":"Your Classet API key. Create and rotate keys in Settings → API.","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"17839619-2618-4ac3-afba-460763bc66c5":{"url":"https://api.classet.ai","description":"Production"},"00aa4118-4e11-4af9-b17e-be21516ad931":{"url":"http://localhost:8081","description":"Local development"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-KEY","description":"Your Classet API key. Create and rotate keys in Settings → API.","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"X-API-KEY","type":"string","description":"Your Classet API key. Create and rotate keys in Settings → API.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"X-API-KEY"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"openapi.json"},"subdomain":"classet","siteName":"Classet API","title":"Update Script Task - Classet API","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-02T05:49:06.207Z","originalFileLocation":"api-reference/scripts/update-task.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Update questions, instructions, qualifying questions, or other fields on a script task. For questions and qualifying_questions, the task must support those fields (check needed_variables in the GET response).\">\u003cmeta data-mint-head name=\"application-name\" content=\"Classet API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"noindex\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/classet/c0zbHJjKuSM8zOpy/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/classet/c0zbHJjKuSM8zOpy/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/classet/c0zbHJjKuSM8zOpy/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/classet/c0zbHJjKuSM8zOpy/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/classet/c0zbHJjKuSM8zOpy/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/classet/c0zbHJjKuSM8zOpy/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/classet/c0zbHJjKuSM8zOpy/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/classet/c0zbHJjKuSM8zOpy/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/classet/c0zbHJjKuSM8zOpy/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update Script Task - Classet API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Update questions, instructions, qualifying questions, or other fields on a script task. For questions and qualifying_questions, the task must support those fields (check needed_variables in the GET response).\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Classet API Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://classet.mintlify.dev/docs/api-reference/scripts/update-task\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://www.classet.ai/og-image.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Update Script Task - Classet API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Update questions, instructions, qualifying questions, or other fields on a script task. For questions and qualifying_questions, the task must support those fields (check needed_variables in the GET response).\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://www.classet.ai/og-image.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/classet/c0zbHJjKuSM8zOpy/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Classet API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#A16207\">\u003clink data-mint-head rel=\"canonical\" href=\"https://classet.mintlify.dev/docs/api-reference/scripts/update-task\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/scripts/update-task.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://classet.mintlify.dev/#organization\",\"name\":\"Classet API\",\"url\":\"https://classet.mintlify.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/classet/F7FrQ_OAFGMrT5Fg/logo/light.svg?fit=max\u0026auto=format\u0026n=F7FrQ_OAFGMrT5Fg\u0026q=85\u0026s=aa940697cace955dcf764ab40e61ee6e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://classet.mintlify.dev/docs#website\",\"name\":\"Classet API\",\"url\":\"https://classet.mintlify.dev/docs\",\"publisher\":{\"@id\":\"https://classet.mintlify.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://classet.mintlify.dev/docs/api-reference/scripts/update-task#webpage\",\"url\":\"https://classet.mintlify.dev/docs/api-reference/scripts/update-task\",\"name\":\"Update Script Task\",\"description\":\"Update questions, instructions, qualifying questions, or other fields on a script task. For questions and qualifying_questions, the task must support those fields (check needed_variables in the GET response).\",\"dateModified\":\"2026-12-02T05:49:06.207Z\",\"isPartOf\":{\"@id\":\"https://classet.mintlify.dev/docs#website\"},\"breadcrumb\":{\"@id\":\"https://classet.mintlify.dev/docs/api-reference/scripts/update-task#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://classet.mintlify.dev/docs/api-reference/scripts/update-task#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Scripts\",\"item\":\"https://classet.mintlify.dev/docs/api-reference/scripts/list-scripts\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Update Script Task\",\"item\":\"https://classet.mintlify.dev/docs/api-reference/scripts/update-task\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://classet.mintlify.dev/docs/api-reference/scripts/update-task#apireference\",\"headline\":\"Update Script Task\",\"name\":\"Update Script Task\",\"description\":\"Update questions, instructions, qualifying questions, or other fields on a script task. For questions and qualifying_questions, the task must support those fields (check needed_variables in the GET response).\",\"url\":\"https://classet.mintlify.dev/docs/api-reference/scripts/update-task\",\"mainEntityOfPage\":{\"@id\":\"https://classet.mintlify.dev/docs/api-reference/scripts/update-task#webpage\"},\"image\":\"https://www.classet.ai/og-image.png\",\"dateModified\":\"2026-12-02T05:49:06.207Z\",\"publisher\":{\"@id\":\"https://classet.mintlify.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://classet.mintlify.dev/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Classet API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Classet API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/api-reference/scripts/update-task.md","siteName":"Classet API","nav":{"global":{"anchors":[{"anchor":"Product","icon":"box","href":"https://www.classet.ai/product"},{"anchor":"Blog","icon":"newspaper","href":"https://www.classet.ai/blog"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"API Reference","href":"/api-reference/overview"},{"title":"Health Check","openapi":"GET /v2/health","href":"/api-reference/health"}]},{"group":"Organization","pages":[{"title":"Get Organization","openapi":"GET /v2/organization","href":"/api-reference/organization/get-organization"},{"title":"List Branches","openapi":"GET /v2/branches","href":"/api-reference/organization/list-branches"},{"title":"List Users","openapi":"GET /v2/users","href":"/api-reference/organization/list-users"},{"title":"List Tags","openapi":"GET /v2/tags","href":"/api-reference/organization/list-tags"}]},{"group":"Jobs","pages":[{"title":"List Jobs","openapi":"GET /v2/jobs","href":"/api-reference/jobs/list-jobs"},{"title":"Get Job","openapi":"GET /v2/jobs/{jobId}","href":"/api-reference/jobs/get-job"},{"title":"List Job Stages","openapi":"GET /v2/jobs/{jobId}/stages","href":"/api-reference/jobs/list-stages"},{"title":"Create Job","openapi":"POST /v2/jobs","href":"/api-reference/jobs/create-job"},{"title":"Update Job","openapi":"PATCH /v2/jobs/{jobId}","href":"/api-reference/jobs/update-job"},{"title":"Delete Job","openapi":"DELETE /v2/jobs/{jobId}","href":"/api-reference/jobs/delete-job"}]},{"group":"Candidates","pages":[{"title":"List Candidates","openapi":"GET /v2/candidates","href":"/api-reference/candidates/list-candidates"},{"title":"Create Candidate","openapi":"POST /v2/candidates","href":"/api-reference/candidates/create-candidate"},{"title":"Get Candidate","openapi":"GET /v2/candidates/{candidateId}","href":"/api-reference/candidates/get-candidate"},{"title":"Update Candidate","openapi":"PATCH /v2/candidates/{candidateId}","href":"/api-reference/candidates/update-candidate"},{"title":"Get Interview","openapi":"GET /v2/candidates/{candidateId}/interview","href":"/api-reference/candidates/get-interview"},{"title":"Get Messages","openapi":"GET /v2/candidates/{candidateId}/messages","href":"/api-reference/candidates/get-messages"},{"title":"Send Interview","openapi":"POST /v2/candidates/{candidateId}/interview","href":"/api-reference/candidates/send-interview"},{"title":"Stop Interview","openapi":"POST /v2/candidates/{candidateId}/stop-interview","href":"/api-reference/candidates/stop-interview"},{"title":"List Candidate Activity","openapi":"GET /v2/candidates/{candidateId}/activity","href":"/api-reference/candidates/list-activity"},{"title":"List Candidate Attachments","openapi":"GET /v2/candidates/{candidateId}/attachments","href":"/api-reference/candidates/list-attachments"},{"title":"List Candidate Notes","openapi":"GET /v2/candidates/{candidateId}/notes","href":"/api-reference/candidates/list-notes"}]},{"group":"Applications","pages":[{"title":"List All Applications","openapi":"GET /v2/applications","href":"/api-reference/applications/list-all-applications"},{"title":"List Applications for a Job","openapi":"GET /v2/jobs/{jobId}/applications","href":"/api-reference/applications/list-applications"},{"title":"Get Application","openapi":"GET /v2/applications/{applicationId}","href":"/api-reference/applications/get-application"},{"title":"Update Application","openapi":"PATCH /v2/applications/{applicationId}","href":"/api-reference/applications/update-application"},{"title":"Disqualify Application","openapi":"POST /v2/applications/{applicationId}/disqualify","href":"/api-reference/applications/disqualify"},{"title":"Move Application Stage","openapi":"PUT /v2/applications/{applicationId}/stage","href":"/api-reference/applications/move-stage"}]},{"group":"Calls","pages":[{"title":"Register Call","openapi":"POST /v2/calls","href":"/api-reference/calls/register-call"},{"title":"Get Call","openapi":"GET /v2/calls/{callId}","href":"/api-reference/calls/get-call"},{"title":"List Candidate Calls","openapi":"GET /v2/candidates/{candidateId}/calls","href":"/api-reference/calls/list-candidate-calls"},{"title":"Download Call Recording","openapi":"GET /v2/calls/{callId}/recording","href":"/api-reference/calls/download-recording"}]},{"group":"Scripts","pages":[{"title":"List Scripts","openapi":"GET /v2/scripts","href":"/api-reference/scripts/list-scripts"},{"title":"Get Script","openapi":"GET /v2/scripts/{scriptId}","href":"/api-reference/scripts/get-script"},{"title":"Create Script","openapi":"POST /v2/scripts","href":"/api-reference/scripts/create-script"},{"title":"Update Script","openapi":"PATCH /v2/scripts/{scriptId}","href":"/api-reference/scripts/update-script"},{"title":"Delete Script","openapi":"DELETE /v2/scripts/{scriptId}","href":"/api-reference/scripts/delete-script"},{"title":"Duplicate Script","openapi":"POST /v2/scripts/{scriptId}/duplicate","href":"/api-reference/scripts/duplicate-script"},{"title":"Add Task","openapi":"POST /v2/scripts/{scriptId}/tasks","description":"Create a new task within an existing script.","href":"/api-reference/scripts/add-task"},{"title":"Update Script Task","openapi":"PATCH /v2/script-tasks/{taskId}","href":"/api-reference/scripts/update-task"},{"title":"Reorder Tasks","openapi":"PUT /v2/scripts/{scriptId}/reorder-tasks","description":"Update the order of all tasks within a script.","href":"/api-reference/scripts/reorder-tasks"}]},{"group":"Message Automations","pages":[{"title":"List Message Automations","openapi":"GET /v2/message-automations","href":"/api-reference/message-automations/list-automations"},{"title":"Get Message Automation","openapi":"GET /v2/message-automations/{automationId}","href":"/api-reference/message-automations/get-automation"},{"title":"Create Message Automation","openapi":"POST /v2/message-automations","href":"/api-reference/message-automations/create-automation"},{"title":"Update Message Automation","openapi":"PATCH /v2/message-automations/{automationId}","href":"/api-reference/message-automations/update-automation"},{"title":"Delete Message Automation","openapi":"DELETE /v2/message-automations/{automationId}","href":"/api-reference/message-automations/delete-automation"},{"title":"Duplicate Message Automation","openapi":"POST /v2/message-automations/{automationId}/duplicate","href":"/api-reference/message-automations/duplicate-automation"},{"title":"Update Automation Steps","openapi":"PUT /v2/message-automations/{automationId}/steps","href":"/api-reference/message-automations/update-steps"},{"title":"Set Default Automation","openapi":"POST /v2/message-automations/{automationId}/set-default","href":"/api-reference/message-automations/set-default"},{"title":"Link Automation to Script","openapi":"POST /v2/scripts/{scriptId}/link-automation","href":"/api-reference/message-automations/link-to-script"}]},{"group":"Agent Settings","pages":[{"title":"Get Agent Settings","openapi":"GET /v2/agent-settings","href":"/api-reference/agent-settings/get-settings"},{"title":"Update Agent Settings","openapi":"PATCH /v2/agent-settings","href":"/api-reference/agent-settings/update-settings"}]},{"group":"Knowledge Base","pages":[{"title":"List Knowledge Entries","openapi":"GET /v2/knowledge","href":"/api-reference/knowledge/list-entries"},{"title":"Create Knowledge Entry","openapi":"POST /v2/knowledge","href":"/api-reference/knowledge/create-entry"},{"title":"Update Knowledge Entry","openapi":"PATCH /v2/knowledge/{entryId}","href":"/api-reference/knowledge/update-entry"},{"title":"Delete Knowledge Entry","openapi":"DELETE /v2/knowledge/{entryId}","href":"/api-reference/knowledge/delete-entry"}]},{"group":"AI Generation","pages":[{"title":"Generate Job","openapi":"POST /v2/jobs/generate","href":"/api-reference/ai/generate-job"},{"title":"Generate Script","openapi":"POST /v2/scripts/generate","href":"/api-reference/ai/generate-script"},{"title":"Onboard Company","openapi":"POST /v2/onboard","href":"/api-reference/ai/onboard"}]},{"group":"Webhooks","pages":[{"title":"Get Webhook Config","openapi":"GET /v2/webhooks","href":"/api-reference/webhooks/get-config"},{"title":"Update Webhook Config","openapi":"PUT /v2/webhooks","href":"/api-reference/webhooks/update-config"},{"title":"Test Webhook","openapi":"POST /v2/webhooks/test","href":"/api-reference/webhooks/test"},{"title":"List Webhook Deliveries","openapi":"GET /v2/webhooks/events","href":"/api-reference/webhooks/list-events"},{"title":"Get Webhook Delivery","openapi":"GET /v2/webhooks/events/{eventId}","href":"/api-reference/webhooks/get-event"}]}]}]},"basePath":"","title":"Update Script Task - Classet API","deploymentId":"dpl_4jsQX6wxBTKTWBK49utMnZg6AX9Q","buildId":"dpl_4jsQX6wxBTKTWBK49utMnZg6AX9Q","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CqAH5gmw.js","snippetPresets-BJgunkn7.js","utils-2nvZyCRg.js","style-to-object-BY3JEAdk.js","utils-Dg_ccOpq.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Dx13yQ3Z.js","conditional-requirements-CFM0id0Q.js","cloneDeep-BF2bK8_8.js","_Uint8Array-CroFGttd.js","isObject-FP1Yky1u.js","ApiExamples-DVMMKE_5.js","usePlaygroundInputsStore-CZqNhEOQ.js","shallow-lVKuG6ys.js","isEqual-BtwhVrrv.js","CodeSnippets-D1j3p1Ld.js","CodeSnippet-DZ0X6n6h.js","use-playground-group-access-CHc7bwGD.js","Page-Dsa0ree3.js","api-description-markdown-D8YljcAx.js","DynamicMarkdown-BpzBQATn.js","SectionHeading-DbMHVbf0.js","MethodPill-Bw-UUkE7.js","getPastedJson-DSpdmJSt.js","Check2Icon-CQQrmKnL.js","axios-CsQoIw0U.js","Markdown-DzeE2WAf.js","AssistantPageLink-CufzKkGt.js","dist-b2i9ft66.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}