Prompt Versions

Duplicate Prompt Version

Changed on

Copies the specified prompt version's template to create a new prompt version in draft state. This operation does not copy any associated payloads, only the prompt template and model configuration.

post/v1/prompts/{id}/versions/{version}/duplicate

Request

  • Base URL: http://localhost:3000
  • URL: http://localhost:3000/v1/prompts/{id}/versions/{version}/duplicate
  • Auth: HTTP bearer

Path parameters

idstring uuid required

Unique prompt UUID.

versionstring required

Version sequence number (integer) or version tag (string) to duplicate from.

Response

Prompt version duplicated and new draft version created successfully

Example response

{
  "version": {
    "template": "Hello {{.name}}!",
    "model": "anthropic/claude-opus-4-6",
    "model_params": {
      "temperature": 0.7,
      "max_tokens": 1024,
      "thinking": {
        "type": "enabled",
        "budget_tokens": 512
      }
    }
  }
}

Changes

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      the endpoint scheme security ApiKeyAuth was removed from the API