Propose an agent or human observation into the current draft
POST
/v1/knowledge/{libraryId}/proposalsCreates an unpublished draft document with immutable provenance. Publishing remains a separate privileged action.
How to call this endpoint
Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.
Path, query, and header parameters
These parameters control which ACP object the endpoint acts on and how the request is processed.
Path parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| libraryId | path | string | Yes | Knowledge library ID |
Query parameters
None.
Body schema
Content type: application/json · Required
| Field | Type | Required | Description |
|---|---|---|---|
| operation | create_document | update_document | archive_document | No | — |
| documentId | string | No | Document ID. |
| baseVersionId | string | No | — |
| baseRevisionId | string | No | — |
| title | string | No | Display title. |
| summary | string | No | — |
| markdown | string | No | — |
| content | string | No | Raw text content. |
| parentDocumentId | string | No | — |
| provenance | object | No | — |
| threadId | string | No | Optional originating thread recorded in immutable document provenance. |
What the API returns
Each response code below includes the documented payload shape for the ACP API.
201Knowledge proposal added to a draft versionapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| status | draft | Yes | Current lifecycle status. |
| operation | create_document | update_document | archive_document | Yes | — |
| documentId | string | No | Document ID. |
| library | object | Yes | — |
| library.id | string | Yes | Unique identifier. |
| library.name | string | Yes | Human-readable name. |
| library.description | string | Yes | Human-readable description. |
| library.homeDocumentId | string | Yes | — |
| library.creatorId | string | No | — |
| library.creatorUserId | string | No | — |
| library.creatorName | string | No | — |
| library.creatorEmail | string | No | — |
| library.creatorAvatarUrl | string | No | — |
| library.ownerId | string | No | — |
| library.ownerUserId | string | No | — |
| library.ownerName | string | No | — |
| library.ownerEmail | string | No | — |
| library.ownerAvatarUrl | string | No | — |
| library.currentVersionId | string | Yes | — |
| library.currentVersionNumber | integer | Yes | — |
| library.publishedVersionId | string | No | — |
| library.metadata | object | No | Free-form metadata object. |
| library.permissionSet | object | No | — |
| library.documents | object[] | No | — |
| library.documents[].id | string | Yes | Unique identifier. |
| library.documents[].libraryId | string | Yes | — |
| library.documents[].revisionId | string | Yes | — |
| library.documents[].currentRevisionId | string | No | — |
| library.documents[].parentDocumentId | string | No | — |
| library.documents[].slug | string | No | — |
| library.documents[].sortOrder | integer | No | — |
| library.documents[].archived | boolean | No | — |
| library.documents[].title | string | Yes | Display title. |
| library.documents[].name | string | No | Human-readable name. |
| library.documents[].summary | string | No | — |
| library.documents[].description | string | No | Human-readable description. |
| library.documents[].markdown | string | Yes | — |
| library.documents[].content | string | No | Raw text content. |
| library.documents[].contentHash | string | Yes | — |
| library.documents[].provenance | object | No | — |
| library.documents[].createdByUserId | string | No | — |
| library.documents[].revisionCreatedByUserId | string | No | — |
| library.documents[].createdAt | string | Yes | ISO 8601 timestamp. |
| library.documents[].revisionCreatedAt | string | No | — |
| library.documents[].updatedAt | string | Yes | ISO 8601 timestamp. |
| library.versions | object[] | No | — |
| library.versions[].id | string | Yes | Unique identifier. |
| library.versions[].number | integer | No | — |
| library.versions[].versionNumber | integer | Yes | — |
| library.versions[].name | string | No | Human-readable name. |
| library.versions[].description | string | No | Human-readable description. |
| library.versions[].status | saved | published | Yes | Current lifecycle status. |
| library.versions[].fingerprint | string | Yes | — |
| library.versions[].publishedAt | string | No | — |
| library.versions[].createdAt | string | Yes | ISO 8601 timestamp. |
| library.versions[].updatedAt | string | Yes | ISO 8601 timestamp. |
| library.createdAt | string | Yes | ISO 8601 timestamp. |
| library.updatedAt | string | Yes | ISO 8601 timestamp. |
| version | object | Yes | — |
| version.id | string | Yes | Unique identifier. |
| version.number | integer | No | — |
| version.versionNumber | integer | Yes | — |
| version.name | string | No | Human-readable name. |
| version.description | string | No | Human-readable description. |
| version.status | saved | published | Yes | Current lifecycle status. |
| version.fingerprint | string | Yes | — |
| version.publishedAt | string | No | — |
| version.createdAt | string | Yes | ISO 8601 timestamp. |
| version.updatedAt | string | Yes | ISO 8601 timestamp. |
| document | object | No | — |
| document.id | string | Yes | Unique identifier. |
| document.libraryId | string | Yes | — |
| document.revisionId | string | Yes | — |
| document.currentRevisionId | string | No | — |
| document.parentDocumentId | string | No | — |
| document.slug | string | No | — |
| document.sortOrder | integer | No | — |
| document.archived | boolean | No | — |
| document.title | string | Yes | Display title. |
| document.name | string | No | Human-readable name. |
| document.summary | string | No | — |
| document.description | string | No | Human-readable description. |
| document.markdown | string | Yes | — |
| document.content | string | No | Raw text content. |
| document.contentHash | string | Yes | — |
| document.provenance | object | No | — |
| document.createdByUserId | string | No | — |
| document.revisionCreatedByUserId | string | No | — |
| document.createdAt | string | Yes | ISO 8601 timestamp. |
| document.revisionCreatedAt | string | No | — |
| document.updatedAt | string | Yes | ISO 8601 timestamp. |
Propose an agent or human observation into the current draft
Loading...
Response 201
Loading...