curl -X POST https://api.classet.ai/v2/scripts/1/duplicate \
-H "X-API-KEY: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"name": "Standard Screen - West Region"
}'
{
"data": {
"script_id": 4
}
}
Scripts
Duplicate Script
POST
/
v2
/
scripts
/
{scriptId}
/
duplicate
curl -X POST https://api.classet.ai/v2/scripts/1/duplicate \
-H "X-API-KEY: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"name": "Standard Screen - West Region"
}'
{
"data": {
"script_id": 4
}
}
Creates a copy of an existing script, including all of its tasks. The duplicate is created with
default set to false. You can optionally provide a new name and description; otherwise, the original values are used with ” (Copy)” appended to the name.
Copies the source script’s agent settings too. Returns the new script_id. Fetch Get Script when you need the copied task list.
curl -X POST https://api.classet.ai/v2/scripts/1/duplicate \
-H "X-API-KEY: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"name": "Standard Screen - West Region"
}'
{
"data": {
"script_id": 4
}
}
Authorizations
Body
application/json
Was this page helpful?