curl -X POST https://api.classet.ai/v2/scripts/1/tasks \
-H "X-API-KEY: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"name": "Safety Knowledge",
"description": "Assess candidate safety awareness",
"questions": [
"What PPE is required on a construction site?",
"Describe your experience with lockout/tagout procedures."
],
"order": 3
}'
{
"data": {
"task_id": 45
}
}
Scripts
Add Task
Create a new task within an existing script.
POST
/
v2
/
scripts
/
{scriptId}
/
tasks
curl -X POST https://api.classet.ai/v2/scripts/1/tasks \
-H "X-API-KEY: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"name": "Safety Knowledge",
"description": "Assess candidate safety awareness",
"questions": [
"What PPE is required on a construction site?",
"Describe your experience with lockout/tagout procedures."
],
"order": 3
}'
{
"data": {
"task_id": 45
}
}
Create a new task within an existing script. The task will be added at the specified order position, or appended to the end if no order is specified.
curl -X POST https://api.classet.ai/v2/scripts/1/tasks \
-H "X-API-KEY: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"name": "Safety Knowledge",
"description": "Assess candidate safety awareness",
"questions": [
"What PPE is required on a construction site?",
"Describe your experience with lockout/tagout procedures."
],
"order": 3
}'
{
"data": {
"task_id": 45
}
}
Authorizations
Body
application/json
Was this page helpful?