ApiAgentdraft
Publishes the current saved Agent draft as an immutable revision.
The authoring body is loaded server-side from the versioned draft. The request contains only the optional version note, so publishing cannot accidentally diverge from the draft the user reviewed.
Authorization
Bearer AuthorizationBearer <token>
JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.
In: header
Path Parameters
agent*string
The unique identifier of the agent.
revision*string
The base revision the draft forks from.
tenant*string
The tenant identifier
The optional version note for the published revision.
comment?string|null
[key: string]?never
Response Body
curl -X POST "https://api.fruxon.com/v1/tenants/string/agents/string/revisions/string/draft:publish" \ -H "Content-Type: application/json" \ -d '{}'{
"agentId": "string",
"revision": 0
}Empty
Empty
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}