FruxonDocs
ApiAgentdraft

Checks the saved Agent draft as publishing it would, without publishing it.

Runs the checks `draft:publish` runs on the same draft: request validation, then the flow rules, models, integration and LLM config references, voice, slots, assets, and agent, tool and knowledge-base references. It writes nothing: no revision, no deploy, and the draft is kept. A draft reported valid is one publishing accepts, unless something it references changes in between. Every request-shape problem is reported. A draft that passes those is checked against the rest the way publishing is, which stops at the first problem, so at most one of those is reported. Warnings never block a publish. Requires `If-Match` with the draft version you read, like publishing, and answers 409 on the same conditions: the draft changed elsewhere, or someone published after this draft's base revision. A managed agent is refused as publishing refuses it.

POST
/v1/tenants/{tenant}/agents/{agent}/revisions/{revision}/draft:validate
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

Response Body

curl -X POST "https://api.fruxon.com/v1/tenants/string/agents/string/revisions/string/draft:validate"
{
  "valid": false,
  "version": 0,
  "errors": [
    {
      "parameter": "string",
      "code": "string",
      "message": "string"
    }
  ],
  "warnings": [
    "string"
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
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
}