Duplicate Prompt Version
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.
Path parameters
Unique prompt UUID.
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
Changed in 4 of the 18 revisions of this API.6
- ○
added the required property
/to the response with the statusresponse-required-property-added
- ○
added the required property
/to the response with the statusresponse-required-property-added
- ○
- ○
the endpoint scheme security
ApiKeyAuthwas removed from the APIapi-security-removed
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
api tag
Prompt Versionsaddedapi-tag-added
- ○
api tag
Promptsremovedapi-tag-removed
- ○
- ○
endpoint added
endpoint-added
- ○