PrompticPromptic
OpenapiExperimentsExperimentidDuplicate

Duplicate an experiment (clones observations + evaluators)

Creates a new experiment under the same AI component as the source, copying observations and evaluators. The initial prompt comes from the source experiment by default; pass `continueFromOptimized: true` to seed from the source's best optimized prompt (continue flow), or `initialPromptOverride` to override with custom text.

POST
/experiments/{experimentId}/duplicate

Creates a new experiment under the same AI component as the source, copying observations and evaluators. The initial prompt comes from the source experiment by default; pass continueFromOptimized: true to seed from the source's best optimized prompt (continue flow), or initialPromptOverride to override with custom text.

Authorization

BearerApiKey
AuthorizationBearer <token>

API key from workspace settings

In: header

Path Parameters

experimentId*string
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://loading/api/v1/experiments/497f6eca-6276-4993-bfeb-53cbbbba6f08/duplicate" \  -H "Content-Type: application/json" \  -d '{}'
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "name": "string",
  "description": "string",
  "targetModel": "string",
  "provider": "string",
  "aiComponentId": "5019a7c9-87f7-404d-b382-86b29517165e",
  "taskType": "string",
  "optimizer": "string",
  "experimentStatus": "string",
  "promptFormat": "string",
  "initialPromptMessages": [
    {
      "role": "string",
      "content": "string"
    }
  ],
  "inputVariables": [
    {
      "name": "string",
      "column": "string"
    }
  ],
  "hyperparameters": {
    "epochs": 0,
    "numFewShots": 0,
    "trainSplitRatio": 0
  },
  "createdAt": "string",
  "updatedAt": "string",
  "modelUnavailable": true
}
{
  "error": "string"
}
{
  "error": "string"
}