Prompts
Publish prompt draft version
Publish one reviewed prompt draft version.
POST
Publishes one exact prompt draft version and makes its three prompt arrays the
agent’s active configuration.
Before calling this route, fetch the version with
Get prompt draft version, compare
it with Get prompts, and obtain explicit
confirmation for that agent and version.
Headers
string
required
Bearer token containing your Fini workspace API key. Format:
Bearer fini_...
The key needs write scope.Path parameters
string
required
Agent ID that owns the draft.
string
required
Exact reviewed draft version ID to publish.
Response
Returns the published lifecycle version.string
Published lifecycle version ID. This matches
versionId.string
New active prompt record ID created from the draft.
string
Agent ID that now uses the published prompt.
number
Published lifecycle version number.
string
Returns
PUBLISHED.datetime
Publication timestamp.
Errors
400 Bad Request
400 Bad Request
The draft is stale because a different prompt version became published
after this draft was created.
403 Forbidden
403 Forbidden
The API key does not include
write scope.404 Not Found
404 Not Found
The version does not exist for this agent or is not a draft.
406 Not Acceptable
406 Not Acceptable
The agent belongs to a different workspace.

