MessageOS
APIKnowledgeIdApprove

Approve a knowledge draft

POST
/knowledge/{id}/approve

Approved entries are the ones the assistant can use. Scope: knowledge:write.

Authorization

bearer
headerAuthorizationBearer <mosc_...>

A client key (mosc_).

Path Parameters

id*integer

The entry id.

Range0 < value

Response Body

The approved entry.

application/json
  1. response
entry*

An approved answer, or a draft of one. The assistant uses approved entries only.

Example request

curl -X POST 'https://api.messageos.ai/v1/knowledge/42/approve' \  -H 'Authorization: Bearer mosc_...'

Example response

{  "entry": {    "id": 12,    "question": "Where can I park?",    "answer": "Parking is in the lot behind the building.",    "tags": [      "parking"    ],    "verbatim": true,    "status": "draft",    "source": "seed",    "version": 1,    "approvedBy": null  }}