Skip to main content
POST
Copies all three prompt arrays from the selected version into a new draft. The source and live prompt stay unchanged. No request body is required. The new draft’s parent is the current published version, not necessarily the source being restored. Review and test the returned draft before publishing it through the prompt publication workflow.

Headers

string
required
Bearer token containing your Fini workspace API key. Format: Bearer fini_... The key needs write scope.

Path parameters

string
required
Agent UUID.
string
required
Source prompt lifecycle version UUID belonging to this agent.

Response

string
New draft version ID.
string
DRAFT.
string | null
Current published lifecycle version when the draft was created.
PromptSection[]
Stored planning sections copied from the source.
PromptSection[]
Stored main-guideline sections copied from the source.
PromptSection[]
Stored channel sections copied from the source.

Errors

400 for malformed UUIDs; 404 when the source version is not found for this agent. The agent must belong to the key’s workspace. All requests can return 401 for an invalid or revoked key, or 403 when the required scope is missing.