Skip to main content
POST
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.

Authorizations

X-API-KEY
string
header
required

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

Path Parameters

scriptId
string
required

The ID of the script to duplicate.

Body

application/json
name
string

Name for the duplicated script. Defaults to the original name with " (Copy)" appended.

Minimum string length: 1
description
string

Description for the duplicated script. Defaults to the original description.

Response

Duplicated

data
object
required