> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nixflex.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update knowledge topic

> Correct a live knowledge piece with its current revision and prepare a replacement index without silently overwriting newer work.

**FIXED · agent** One live knowledge base belongs to an agent. Its attached numbers use that base on enabled channels. Only the active revision and eligible, unsuppressed pieces enter live retrieval.

**NOT OFFERED → do this instead · number** Knowledge and its enabled channels belong to the agent. Retired per-number knowledge operations return 410 number\_knowledge\_removed. Use separate agents when a number needs different knowledge or none.

**YOU CAN CHANGE · source** Use pasted text, PDF, DOCX or plain UTF-8 text, or discover a website and import selected pages. API submissions can request review.

**SCOPE · agent** Review knowledge drafts and publish approved material. Limits per base: `sources` 50 · `kbTokens` 100,000 · `topics` 1,000.

[Read the compact AI rules](https://docs.nixflex.com/ai-rules.md#knowledge)

Correct a live piece and prepare its replacement index.

Method: **PATCH** · Success: **202** · Scope: **Owning account**

**The important part**

* Apply a narrow edit against the current revision.
* Resolve a conflict by reviewing newer text, not by discarding the guard.

[Business guide](https://docs.nixflex.com/guides/business/knowledge.md) · [Developer guide](https://docs.nixflex.com/guides/developer/knowledge.md) · [Glossary](https://docs.nixflex.com/guides/glossary.md)

## Authentication

Send Authorization: Bearer KEY\_ID:KEY\_SECRET using the owning account’s server-side API credential. API keys have Owner authority. Personal Owner and Admin may perform this action; Member is refused. Personal dashboard visibility can hide API-origin agents. Never send owner fields to select another account.

## Request fields

| Field | Type | Required | Default | Limits and meaning |
| - | - | - | - | - |
| `kb` (path) | string | Yes | None | Opaque identifier. Keep it as a string. Format: uuid. |
| `id` (path) | string | Yes | None | Opaque identifier. Keep it as a string. Format: uuid. |
| `Idempotency-Key` (header) | string | Yes | None | Unique 8–128-character operation key: letters, numbers, dot, underscore, colon or hyphen. The prompt: prefix is reserved. Reuse only with the identical operation and payload. Maximum 128 characters. Minimum 8 characters. Pattern: `^[A-Za-z0-9_.:-]{8,128}$`. |

Send a JSON object.

| Field | Type | Required | Default | Limits and meaning |
| - | - | - | - | - |
| `expected_revision` | integer | Yes | None | Latest integer revision read from this resource; it must still match when the request runs. Minimum 1. |
| `topic` | object | Yes | None | Saved value. |
| `topic.title` | string | No | Omitted | Optional title. Blank or omitted on edit retains the existing title; on create opening words are used. Maximum 200 characters. |
| `topic.facts` | string | Yes | None | Original or manually written piece text; nonblank. A published packed piece must fit 800 tokens. Maximum 20000 characters. Minimum 1 characters. |
| `topic.questions` | array of string | No | Omitted | Optional compatibility labels; omitted create uses \[]; omitted edit retains prior labels. Maximum 5 items. |
| `topic.valid_from` | string or null | No | Omitted | UTC timestamp. Format: date-time. |
| `topic.valid_until` | string or null | No | Omitted | Exclusive validity end; after valid\_from when both are set. Format: date-time. |

The old answer is suppressed immediately for a normal update while indexing runs. A blank title keeps the current title; omitted questions keep existing labels. Oversized text returns a draft for splitting.

## Response fields

`202 Accepted` returns the fields below. Where this operation queues work, follow the job and current revision until it finishes ([accepted is not confirmed](https://docs.nixflex.com/guides/glossary.md#saved-accepted-and-confirmed)).

| Field | Type | Meaning |
| - | - | - |
| `id` | string | Opaque identifier. Keep it as a string. Format: uuid. |
| `kb` | string | Opaque identifier. Keep it as a string. Format: uuid. |
| `kind` | string | Work type; includes import, discovery, publish, manual, export, delete and automatic-term maintenance. |
| `state` | string | Allowed: `"pending"`, `"running"`, `"needs_review"`, `"ready"`, `"failed"`, `"cancelled"`, `"deleted"`. |
| `stage` | string | Current work stage, including reading, preparing, indexing, safety\_check or safety\_waiting. |
| `progress` | object | Saved value. |
| `progress.percent` | integer | Completed-stage progress, not elapsed-time prediction. Minimum 0. Maximum 100. |
| `progress.phase` | string | Reading or naming phase. |
| `progress.page` | integer | Current page number. |
| `progress.pages` | integer | Total input pages or entries. |
| `progress.completed` | integer | Completed preparation units. |
| `progress.total` | integer | Total preparation units. |
| `result` | object or null | Fields depend on job kind. Poll the job until a terminal state or needs\_review; ready alone is not a claim that new text was published. |
| `result.draft_id` | string | Opaque identifier. Keep it as a string. Format: uuid. |
| `result.warnings` | array of string | Saved value. |
| `result.summary` | object | Saved value. |
| `result.summary.pages` | integer | Website pages processed. |
| `result.summary.pieces` | integer | Prepared pieces. |
| `result.summary.duplicates_skipped` | integer | Duplicate pieces or repeated source skipped. |
| `result.unchanged` | boolean | No new publishable content was produced. |
| `result.revision` | one of the shapes below | Saved value. |
| `result.expected_revision` | integer | Latest integer revision read from this resource; it must still match when the request runs. Minimum 1. |
| `result.expires_at` | string | UTC timestamp. Format: date-time. |
| `result.deleted` | boolean | Saved value. |
| `result.private_objects_remaining` | integer | Saved value. |
| `result.pages` | array of object | Saved value. |
| `result.pages[].id` | string | Discovery page ID, use exactly as returned. |
| `result.pages[].url` | string | Discovered public page URL. |
| `result.pages[].title` | string | Discovered page title. |
| `error` | object or null | Saved value. |
| `error.code` | string | Machine-readable failure code; see the error catalog. |
| `error.message` | string | Display as escaped text; never execute or insert as HTML. |
| `next_retry_at` | string or null | UTC timestamp. Format: date-time. |
| `paid_work_started` | boolean | Whether paid preparation work began; not an invoice or an additional charge. |
| `created_at` | string | UTC timestamp. Format: date-time. |
| `kb` | string | Opaque identifier. Keep it as a string. Format: uuid. |
| `state` | string | Value: `"needs_review"`. |
| `draft_id` | string | Opaque identifier. Keep it as a string. Format: uuid. |

## Example request

These examples target Node/CLI 0.11.0 and Python 0.4.0; confirm the installed version supports the method before use. The cURL tab uses Bash; CLI uses PowerShell. Python shows sync usage; AsyncNixflex uses the same JSON methods with async with and await. Set the account credential in `NIXFLEX_API_KEY` and the owned path identifiers shown below in environment variables. Set `NXF_IDEMPOTENCY_KEY` to a new valid key for one intended operation. This operation changes state. Review the request and disable automatic write retries.

```json request-122.json theme={"dark"}
{
  "expected_revision": 1,
  "topic": {
    "facts": "Appointments are available Monday through Saturday."
  }
}
```

```bash cURL (Bash) theme={"dark"}
curl --request PATCH \
  --url "https://api.nixflex.com/v1/knowledge-bases/$(node -p 'encodeURIComponent(process.env.NXF_KNOWLEDGE_BASE_ID)')/topics/$(node -p 'encodeURIComponent(process.env.NXF_RESOURCE_ID)')" \
  --header "Authorization: Bearer $NIXFLEX_API_KEY" \
  --header "Idempotency-Key: $NXF_IDEMPOTENCY_KEY" \
  --header "Content-Type: application/json" \
  --data '{"expected_revision":1,"topic":{"facts":"Appointments are available Monday through Saturday."}}'
```

```javascript Node theme={"dark"}
import Nixflex from 'nixflex';
const c = new Nixflex({apiKey:process.env.NIXFLEX_API_KEY,baseUrl:'https://api.nixflex.com',maxRetries:0});
const result = await c.knowledge.updateTopic(process.env.NXF_KNOWLEDGE_BASE_ID, process.env.NXF_RESOURCE_ID, {"expected_revision":1,"topic":{"facts":"Appointments are available Monday through Saturday."}}, {idempotencyKey:process.env.NXF_IDEMPOTENCY_KEY});
// Keep knowledge and private results out of logs.
```

```python Python theme={"dark"}
import os
from nixflex import Nixflex

with Nixflex(api_key=os.environ["NIXFLEX_API_KEY"], base_url="https://api.nixflex.com", max_retries=0) as c:
    result = c.knowledge.update_topic(os.environ["NXF_KNOWLEDGE_BASE_ID"], os.environ["NXF_RESOURCE_ID"], {
      "expected_revision": 1,
      "topic": {
        "facts": "Appointments are available Monday through Saturday."
      }
    }, idempotency_key=os.environ["NXF_IDEMPOTENCY_KEY"])
    # Keep knowledge and private results out of logs.
```

```powershell CLI (PowerShell) theme={"dark"}
# Save the JSON below privately as request-122.json.
nixflex knowledge updateTopic "$env:NXF_KNOWLEDGE_BASE_ID" "$env:NXF_RESOURCE_ID" --body '@request-122.json' --idempotency-key "$env:NXF_IDEMPOTENCY_KEY" --confirm --json --base-url "https://api.nixflex.com"
```

MCP does not offer this operation because this operation is outside the approved tool permissions. Use the documented Node, Python, CLI or HTTP operation with the required authority.

## Example response

Illustrative response; identifiers are placeholders and optional fields can be absent.

```json Response theme={"dark"}
{
  "id": "11111111-1111-4111-8111-111111111111",
  "kb": "11111111-1111-4111-8111-111111111111",
  "kind": "example",
  "state": "pending",
  "stage": "example",
  "progress": {
    "percent": 0
  },
  "result": null,
  "error": null,
  "next_retry_at": null,
  "paid_work_started": false,
  "created_at": "2026-11-02T12:00:00Z"
}
```

## Errors

Failures use `error.type`, `error.code`, `error.message`, `error.doc_url` and optional `error.details`. Knowledge failures include a request ID in details when available. Read the safe message as text. A job can return HTTP 200 with state `failed` and `error`; that is a job failure, not an HTTP error. Source failures can arise during preparation after the initial accepted response.

| Status | Code | Meaning | What to do |
| - | - | - | - |
| 400 | [`invalid_input`](https://docs.nixflex.com/api-reference/errors#invalid_input) | Check the information and try again. | Correct the named fields or reduce the input before retrying. |
| 404 | [`not_found`](https://docs.nixflex.com/api-reference/errors#not_found) | That topic is not available. | Check the owned identifier and feature availability. |
| 409 | [`deleting`](https://docs.nixflex.com/api-reference/errors#deleting) | This knowledge base is being deleted. | Read current state and resolve the conflict before sending a new request. |
| 503 | [`unavailable`](https://docs.nixflex.com/api-reference/errors#unavailable) | Knowledge is unavailable right now. Your saved information is safe. Try again. | Retry reads with bounded backoff; reconcile writes before repeating. |
| 503 | [`knowledge_unconfigured`](https://docs.nixflex.com/api-reference/errors#knowledge_unconfigured) | Knowledge is not available yet. | Retry reads with bounded backoff; reconcile writes before repeating. |
| 503 | [`knowledge_not_released`](https://docs.nixflex.com/api-reference/errors#knowledge_not_released) | Knowledge is not released yet. | Retry reads with bounded backoff; reconcile writes before repeating. |
| 403 | [`permission_denied`](https://docs.nixflex.com/api-reference/errors#permission_denied) | Your personal role does not allow this action. | Use a permitted personal account; do not share the organisation key. |
| 403 | [`membership_revoked`](https://docs.nixflex.com/api-reference/errors#membership_revoked) | Your membership has ended. | Use a permitted personal account; do not share the organisation key. |
| 401 | [`unauthorized`](https://docs.nixflex.com/api-reference/errors#unauthorized) | The credential is missing or invalid. | Check the full account credential. |
| 429 | [`rate_limit_exceeded`](https://docs.nixflex.com/api-reference/errors#rate_limit_exceeded) | The account request limit was reached. | Wait for the stated retry/reset time. |
| 413 | [`topic_limit`](https://docs.nixflex.com/api-reference/errors#topic_limit) | There are too many topics. | Correct the named fields or reduce the input before retrying. |
| 413 | [`knowledge_limit`](https://docs.nixflex.com/api-reference/errors#knowledge_limit) | This knowledge base has too much original text. Remove a source or use a separate knowledge base. | Correct the named fields or reduce the input before retrying. |
| 413 | [`storage_limit`](https://docs.nixflex.com/api-reference/errors#storage_limit) | Your account has reached its private storage limit. Remove old sources first. | Correct the named fields or reduce the input before retrying. |
| 429 | [`busy`](https://docs.nixflex.com/api-reference/errors#busy) | Please wait for the existing knowledge jobs to finish. | Wait for the stated retry/reset time. |
| 409 | [`idempotency_conflict`](https://docs.nixflex.com/api-reference/errors#idempotency_conflict) | Use a new Idempotency-Key for different information. | Read current state and resolve the conflict before sending a new request. |
| 409 | [`stale_revision`](https://docs.nixflex.com/api-reference/errors#stale_revision) | The list changed. Reload it to see the latest pieces. | Read current state, review the changes and use the fresh revision. |
| 400 | [`invalid_body`](https://docs.nixflex.com/api-reference/errors#invalid_body) | The request body could not be read. | Correct the named fields or reduce the input before retrying. |
| 413 | [`invalid_body`](https://docs.nixflex.com/api-reference/errors#invalid_body) | The request body is too large. | Keep the transport body within 10 MiB. |

## Retry and idempotency

Use a new Idempotency-Key for each intended change. The same key with the identical operation and payload replays the stored result; a different payload conflicts. Do not automatically repeat an uncertain write. Read the current job/resource first, then reconcile with the original key. Check expected\_revision against current state; a fresh key does not bypass revision checks.

## Related endpoints

* [Get knowledge capabilities](https://docs.nixflex.com/api-reference/knowledge/get-knowledge-capabilities.md)
* [List knowledge agents](https://docs.nixflex.com/api-reference/knowledge/get-knowledge-targets.md)
* [Errors and recovery](https://docs.nixflex.com/api-reference/errors.md#error-envelope)


## OpenAPI

````yaml api-reference/public.openapi.json PATCH /knowledge-bases/{kb}/topics/{id}
openapi: 3.1.0
info:
  title: Nixflex public API
  version: 1.0.0
  description: >-
    Nixflex API reference for agents, calls, messaging, knowledge, organisations
    and integrations. Authenticate with the owning account and follow each
    operation’s permissions, response and retry contract.
servers:
  - url: https://api.nixflex.com/v1
security:
  - bearerAuth: []
paths:
  /knowledge-bases/{kb}/topics/{id}:
    patch:
      tags:
        - Knowledge
      summary: Update knowledge topic
      description: >-
        Correct a live piece and prepare its replacement index. The old answer
        is suppressed immediately for a normal update while indexing runs. A
        blank title keeps the current title; omitted questions keep existing
        labels. Oversized text returns a draft for splitting.
      operationId: patch_knowledge_bases_kb_topics_id_
      parameters:
        - name: kb
          in: path
          required: true
          schema:
            type: string
            description: Opaque identifier. Keep it as a string.
            format: uuid
        - name: id
          in: path
          required: true
          schema:
            type: string
            description: Opaque identifier. Keep it as a string.
            format: uuid
        - name: Idempotency-Key
          in: header
          required: true
          schema:
            type: string
            description: >-
              Unique 8–128-character operation key: letters, numbers, dot,
              underscore, colon or hyphen. The prompt: prefix is reserved. Reuse
              only with the identical operation and payload.
            minLength: 8
            maxLength: 128
            pattern: ^[A-Za-z0-9_.:-]{8,128}$
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                expected_revision:
                  type: integer
                  description: >-
                    Latest integer revision read from this resource; it must
                    still match when the request runs.
                  minimum: 1
                topic:
                  type: object
                  properties:
                    title:
                      type: string
                      description: >-
                        Optional title. Blank or omitted on edit retains the
                        existing title; on create opening words are used.
                      maxLength: 200
                    facts:
                      type: string
                      description: >-
                        Original or manually written piece text; nonblank. A
                        published packed piece must fit 800 tokens.
                      minLength: 1
                      maxLength: 20000
                    questions:
                      type: array
                      items:
                        type: string
                        description: Legacy searchable question label.
                        minLength: 1
                        maxLength: 300
                      description: >-
                        Optional compatibility labels; omitted create uses [];
                        omitted edit retains prior labels.
                      maxItems: 5
                    valid_from:
                      type:
                        - string
                        - 'null'
                      description: UTC timestamp.
                      format: date-time
                    valid_until:
                      type:
                        - string
                        - 'null'
                      description: >-
                        Exclusive validity end; after valid_from when both are
                        set.
                      format: date-time
                  required:
                    - facts
                  additionalProperties: true
                  description: ''
              required:
                - expected_revision
                - topic
              additionalProperties: true
              description: ''
            example:
              expected_revision: 1
              topic:
                facts: Appointments are available Monday through Saturday.
      responses:
        '202':
          description: Accepted; inspect the job before claiming completion.
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    properties:
                      id:
                        type: string
                        description: Opaque identifier. Keep it as a string.
                        format: uuid
                      kb:
                        type: string
                        description: Opaque identifier. Keep it as a string.
                        format: uuid
                      kind:
                        type: string
                        description: >-
                          Work type; includes import, discovery, publish,
                          manual, export, delete and automatic-term maintenance.
                      state:
                        type: string
                        description: ''
                        enum:
                          - pending
                          - running
                          - needs_review
                          - ready
                          - failed
                          - cancelled
                          - deleted
                      stage:
                        type: string
                        description: >-
                          Current work stage, including reading, preparing,
                          indexing, safety_check or safety_waiting.
                      progress:
                        type: object
                        properties:
                          percent:
                            type: integer
                            description: >-
                              Completed-stage progress, not elapsed-time
                              prediction.
                            minimum: 0
                            maximum: 100
                          phase:
                            type: string
                            description: Reading or naming phase.
                          page:
                            type: integer
                            description: Current page number.
                          pages:
                            type: integer
                            description: Total input pages or entries.
                          completed:
                            type: integer
                            description: Completed preparation units.
                          total:
                            type: integer
                            description: Total preparation units.
                        required:
                          - percent
                        additionalProperties: true
                        description: ''
                      result:
                        type:
                          - object
                          - 'null'
                        properties:
                          draft_id:
                            type: string
                            description: Opaque identifier. Keep it as a string.
                            format: uuid
                          warnings:
                            type: array
                            items:
                              type: string
                              description: ''
                            description: ''
                          summary:
                            type: object
                            properties:
                              pages:
                                type: integer
                                description: Website pages processed.
                              pieces:
                                type: integer
                                description: Prepared pieces.
                              duplicates_skipped:
                                type: integer
                                description: Duplicate pieces or repeated source skipped.
                            additionalProperties: true
                            description: ''
                          unchanged:
                            type: boolean
                            description: No new publishable content was produced.
                          revision:
                            anyOf:
                              - type: string
                                description: Opaque identifier. Keep it as a string.
                                format: uuid
                              - type: integer
                                description: Integer revision for an export snapshot.
                          expected_revision:
                            type: integer
                            description: >-
                              Latest integer revision read from this resource;
                              it must still match when the request runs.
                            minimum: 1
                          expires_at:
                            type: string
                            description: UTC timestamp.
                            format: date-time
                          deleted:
                            type: boolean
                            description: ''
                          private_objects_remaining:
                            type: integer
                            description: ''
                          pages:
                            type: array
                            items:
                              type: object
                              properties:
                                id:
                                  type: string
                                  description: Discovery page ID, use exactly as returned.
                                url:
                                  type: string
                                  description: Discovered public page URL.
                                title:
                                  type: string
                                  description: Discovered page title.
                              required:
                                - id
                                - url
                              additionalProperties: true
                              description: ''
                            description: ''
                        additionalProperties: true
                        description: >-
                          Fields depend on job kind. Poll the job until a
                          terminal state or needs_review; ready alone is not a
                          claim that new text was published.
                      error:
                        type:
                          - object
                          - 'null'
                        properties:
                          code:
                            type: string
                            description: >-
                              Machine-readable failure code; see the error
                              catalog.
                          message:
                            type: string
                            description: >-
                              Display as escaped text; never execute or insert
                              as HTML.
                        required:
                          - code
                          - message
                        additionalProperties: true
                        description: ''
                      next_retry_at:
                        type:
                          - string
                          - 'null'
                        description: UTC timestamp.
                        format: date-time
                      paid_work_started:
                        type: boolean
                        description: >-
                          Whether paid preparation work began; not an invoice or
                          an additional charge.
                      created_at:
                        type: string
                        description: UTC timestamp.
                        format: date-time
                    required:
                      - id
                      - kb
                      - kind
                      - state
                      - stage
                      - progress
                      - result
                      - error
                      - next_retry_at
                      - paid_work_started
                      - created_at
                    additionalProperties: true
                    description: ''
                  - type: object
                    properties:
                      kb:
                        type: string
                        description: Opaque identifier. Keep it as a string.
                        format: uuid
                      state:
                        type: string
                        description: ''
                        const: needs_review
                      draft_id:
                        type: string
                        description: Opaque identifier. Keep it as a string.
                        format: uuid
                    required:
                      - kb
                      - state
                      - draft_id
                    additionalProperties: true
                    description: ''
        '400':
          description: >-
            invalid_input: Check the information and try again. invalid_body:
            The request body could not be read.
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    properties:
                      type:
                        type: string
                      code:
                        type: string
                      message:
                        type: string
                      doc_url:
                        type: string
                      details:
                        type: object
                        additionalProperties: true
        '401':
          description: 'unauthorized: The credential is missing or invalid.'
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    properties:
                      type:
                        type: string
                      code:
                        type: string
                      message:
                        type: string
                      doc_url:
                        type: string
                      details:
                        type: object
                        additionalProperties: true
        '403':
          description: >-
            permission_denied: Your personal role does not allow this action.
            membership_revoked: Your membership has ended.
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    properties:
                      type:
                        type: string
                      code:
                        type: string
                      message:
                        type: string
                      doc_url:
                        type: string
                      details:
                        type: object
                        additionalProperties: true
        '404':
          description: 'not_found: That topic is not available.'
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    properties:
                      type:
                        type: string
                      code:
                        type: string
                      message:
                        type: string
                      doc_url:
                        type: string
                      details:
                        type: object
                        additionalProperties: true
        '409':
          description: >-
            deleting: This knowledge base is being deleted.
            idempotency_conflict: Use a new Idempotency-Key for different
            information. stale_revision: The list changed. Reload it to see the
            latest pieces.
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    properties:
                      type:
                        type: string
                      code:
                        type: string
                      message:
                        type: string
                      doc_url:
                        type: string
                      details:
                        type: object
                        additionalProperties: true
        '413':
          description: >-
            topic_limit: There are too many topics. knowledge_limit: This
            knowledge base has too much original text. Remove a source or use a
            separate knowledge base. storage_limit: Your account has reached its
            private storage limit. Remove old sources first. invalid_body: The
            request body is too large.
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    properties:
                      type:
                        type: string
                      code:
                        type: string
                      message:
                        type: string
                      doc_url:
                        type: string
                      details:
                        type: object
                        additionalProperties: true
        '429':
          description: >-
            rate_limit_exceeded: The account request limit was reached. busy:
            Please wait for the existing knowledge jobs to finish.
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    properties:
                      type:
                        type: string
                      code:
                        type: string
                      message:
                        type: string
                      doc_url:
                        type: string
                      details:
                        type: object
                        additionalProperties: true
        '503':
          description: >-
            unavailable: Knowledge is unavailable right now. Your saved
            information is safe. Try again. knowledge_unconfigured: Knowledge is
            not available yet. knowledge_not_released: Knowledge is not released
            yet.
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    properties:
                      type:
                        type: string
                      code:
                        type: string
                      message:
                        type: string
                      doc_url:
                        type: string
                      details:
                        type: object
                        additionalProperties: true
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        KEY_ID:KEY_SECRET from the owning account. Keep it server-side. A
        verified personal dashboard Bearer session may be used where the
        operation documents role-based access.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.