AlmondTill/G3N API

On this page

abandonFillDraft

mutation · in the family Work and notes

What it does

Close one of your own wizard drafts — while it is being made or once it is ready.

Close ONE of YOUR wizard drafts: drafting or ready → abandoned; a draft still being made is cancelled with the assistant as far as it can be, and your drafting slot frees at once. Another state refuses CONFLICT/REF_STATE naming it; another person's draft, or none at all, is NOT_FOUND. Requires the unrestricted capability on a USER session. Template class.

What happens

Only the person who started the draft can abandon it; a draft still being made is cancelled with the assistant as far as it can be. A closed draft drops from the list but stays readable one at a time.

Who may call it

Capability area: Work and notes — Tasks, notes, messages, dashboards and the everyday tools every staff member keeps.

Arguments

NameTypeRequiredNotes
idID ID!yesThe id of the record.

Returns

FillDraft FillDraft! — One background wizard draft (🤖 — slice): YOUR text and/or documents in, a drafted sheet across EVERY page of the walk out — in the background (the assistant thinks at its highest effort; the machine polls every 8 s inside a 480 s wall). The sheet (pages · questions · advice · understood) is ABSENT until status ready; failReason is present on failed. DRAFTS ONLY — nothing is created or applied; you review every value. expiresAt = the draft's lifetime in epoch seconds (startedAt + 30 days).

Example request

mutation ExampleAbandonFillDraft($id: ID!) {
  abandonFillDraft(id: $id) {
    id
    sysId
    type
    caption
    status
    parentId
    rootId
    revision
    revisionNum
    createdAt
    updatedAt
    wizardType
    brief
    materialIds
    filled
    questions
    advice
    understood
    turnCount
    summary
    summarizedThroughSeq
    activeTurnId
    activeTurnStartedAt
    failReason
    sfExecutionArn
    startRequestId
    startedAt
    readyAt
    takenAt
    takenRef
    expiresAt
  }
}

Variables:

{
  "id": "01900000-0000-7000-8000-37386ae00000"
}

Send it with the envelope naming the version: "extensions": {"at": {"version": {"name":"genesis","number":0}}}.

Example response

{
  "data": {
    "abandonFillDraft": {
      "id": "01900000-0000-7000-8000-37386ae00000",
      "sysId": "FL-EXMP-0000-000F",
      "type": "FillDraft",
      "caption": "Blue jeans",
      "status": "drafting",
      "parentId": "01900000-0000-7000-8000-065235280000",
      "rootId": "01900000-0000-7000-8000-a093dd800000",
      "revision": "01900000-0000-7000-8000-b7960e180000",
      "revisionNum": 1,
      "createdAt": "2027-01-31T00:00:00.000Z",
      "updatedAt": "2027-01-31T00:00:00.000Z",
      "wizardType": "<wizard type>",
      "brief": "<brief>",
      "materialIds": [
        "01900000-0000-7000-8000-a36392ca0000"
      ],
      "filled": "<filled>",
      "questions": [
        "<questions>"
      ],
      "advice": "<advice>",
      "understood": "<understood>",
      "turnCount": 1,
      "summary": "<summary>",
      "summarizedThroughSeq": 1,
      "activeTurnId": "01900000-0000-7000-8000-770cb7810000",
      "activeTurnStartedAt": "2027-01-31T00:00:00.000Z",
      "failReason": "<fail reason>",
      "sfExecutionArn": "<sf execution arn>",
      "startRequestId": "01900000-0000-7000-8000-c154ec1d0000",
      "startedAt": "2027-01-31T00:00:00.000Z",
      "readyAt": "2027-01-31T00:00:00.000Z",
      "takenAt": "2027-01-31T00:00:00.000Z",
      "takenRef": "<taken ref>",
      "expiresAt": 1
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

Errors this call can answer