Skip to main content
POST
/
simulations
/
{simulationReference}
/
clone
Clone scenario
curl --request POST \
  --url https://api-trial.cognigy.ai/testing/simulations/{simulationReference}/clone \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>"
}
'
{
  "id": "<string>",
  "referenceId": "<string>",
  "name": "<string>",
  "persona": "<string>",
  "personaName": "<string>",
  "mission": "<string>",
  "successCriteria": [
    {
      "type": "<string>",
      "params": {}
    }
  ],
  "organisationReference": "<string>",
  "projectReference": "<string>",
  "createdAt": 123,
  "createdBy": "<string>",
  "lastChanged": 123,
  "lastChangedBy": "<string>",
  "maxTurns": 123,
  "timeout": 123,
  "aiAgentReferenceId": "<string>",
  "aiAgentId": "<string>",
  "flowReferenceId": "<string>",
  "flowId": "<string>",
  "jobNodeId": "<string>",
  "updatedAt": 123,
  "updatedBy": "<string>"
}

Authorizations

Authorization
string
header
required

JWT Bearer Token for authentication

Path Parameters

simulationReference
string
required

Reference ID of the scenario to clone

Query Parameters

projectId
string
required

Project identifier

Body

application/json
name
string

Optional new name for the cloned scenario

Response

Scenario cloned successfully

id
string
required

Unique identifier for the scenario

referenceId
string
required

Reference ID for the scenario

name
string
required

Name of the scenario

persona
string
required

Persona description

personaName
string
required

Name of the persona

mission
string
required

Mission description

successCriteria
object[]
required

List of success criteria (structured objects)

organisationReference
string
required

Organization reference

projectReference
string
required

Project reference

createdAt
integer<int64>
required

Creation timestamp

createdBy
string
required

User who created the scenario

lastChanged
integer<int64>
required

Last change timestamp

lastChangedBy
string
required

User who made the last change

maxTurns
integer

Maximum number of turns

timeout
integer

Timeout in seconds

aiAgentReferenceId
string

Reference ID of the AI Agent

aiAgentId
string

Database ID of the AI Agent

flowReferenceId
string

Reference ID of the Flow

flowId
string

Database ID of the Flow

jobNodeId
string

Job Node ID

updatedAt
integer<int64>

Last update timestamp

updatedBy
string

User who last updated the scenario

Last modified on July 2, 2026