Scenarios

Duplicate evaluators into a folder

Changed on

Create copies of existing evaluators in this project or another project in the same organization. Use this instead of recreating evaluators with scenarios_create; same-project copies retain their metrics and test profiles, while cross-project copies use the destination project's predefined metrics. Set copy_to_project to the source project for a folder-only copy; folder_path is created when needed, and copied evaluators are named Copy of <original name>.

post/test_framework/v2/scenarios/duplicate/

Request

  • Base URL
    https://api.cekura.ai
  • URL
    https://api.cekura.ai/test_framework/v2/scenarios/duplicate/
  • Auth
    • API key in header X-CEKURA-API-KEY
    • or HTTP bearer
    • or HTTP bearer

Query parameters

pageinteger

A page number within the paginated result set.

page_sizeinteger

Number of results to return per page.

Request body

projectinteger required

Project ID containing the source evaluators.

copy_to_projectinteger required

Destination project ID in the same organization.

scenariosinteger[] required

IDs of the evaluators to duplicate.

scenario_agentinteger

Optional destination agent ID. It must belong to the destination project.

folder_pathstring

Destination folder path, e.g. "Sales" or "Sales.Inbound". Created when it does not already exist; a new folder nests at most one level deep.

Response

countinteger required
nextstring uri nullable
previousstring uri nullable

Example response

{
  "count": 123,
  "next": "https://api.cekura.ai/example/v1/example-external/?page=4",
  "previous": "https://api.cekura.ai/example/v1/example-external/?page=3"
}

Changes