FruxonDocs
ApiFruxon channel

Reports the draft a `DRAFT`-policy turn on this session would run.

Backs the console's "Run my draft" toggle. Drafts are per-user, so this answers for the caller and nobody else: `hasDraft: false` means they have not edited this agent, and the toggle has nothing to offer. `onCurrentRevision: false` means their draft forks from an older published revision than the one deployed — still their code, still worth testing, but the console has to label which base it ran against. A read, deliberately: deriving the same answer client-side from `GET /agents/{agent}/drafts` would let the toggle and the turn pick different drafts as soon as the rules drifted.

GET
/v1/tenants/{tenant}/fruxon/sessions/{session}/draft
AuthorizationBearer <token>

JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.

In: header

Path Parameters

session*string

The session id returned by open.

tenant*string

The tenant identifier

Response Body

curl -X GET "https://api.fruxon.com/v1/tenants/string/fruxon/sessions/string/draft"
{
  "hasDraft": false,
  "baseRevision": 0,
  "seqNo": 0,
  "version": 0,
  "agentRevision": 0,
  "onCurrentRevision": false
}
Empty
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}