Skip to main content
POST
Creates a new interview script from Classet’s Basic Interview template. The new script gets a copy of the template’s five tasks, in order: questions is an object keyed by a task’s name or short_name. Each value replaces that task’s default questions. A task you don’t name keeps the template’s default questions. A key that matches no task is ignored without an error, so check the spelling. Only tasks whose needed_variables include task.questions ask the questions you set. You can customize individual tasks afterward using the Update Task endpoint. Returns the new script_id. Fetch Get Script when you need the generated task list.

Authorizations

X-API-KEY
string
header
required

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

Body

application/json
name
string
required

The name of the script.

Minimum string length: 1
Example:

"Technical Screen"

description
string

A description of the script's purpose.

default
boolean

Set to true to make this the default script for new jobs.

questions
object

Questions for the script's tasks, as a map from task key to an array of question strings. A new script copies its tasks from the default interview template; each key must match a task's name or short_name in that template (see GET /v2/scripts/{scriptId} for a script's tasks). Unknown keys are ignored, and a task with no matching key keeps the template's questions.

Response

Created

data
object
required