CRBNai API
  1. Documents
CRBNai API
  • README
  • Authentication
  • Guides
    • Creating a Knowledge Bot
  • API Keys
    • Get all API Keys
      GET
    • Create API Key
      POST
    • Delete API Key
      DELETE
  • Chats
    • Messages
      • Get Chat Messages
      • Post Chat Message
    • Recipes
      • Get All Chat Recipes
    • Get All Chats
      GET
    • Create Chat
      POST
  • Documents
    • Delete Document
      DELETE
    • Download Document
      GET
    • Update Document
      PUT
  • Knowledge Bots
    • Documents
      • Add Document to Knowledge Bot
      • Prepare Document Upload
    • Chats
      • Chat Messages
        • Get Messages of a Knowledge Bot chat
        • Post a message to a Knowlege Bot chat
      • Get all Knowledge Bot chats
      • Create Knowledge Bot chat
    • Chats - deprecated
      • Chat with a Knowledge Bot
    • Create Knowledge Bot
      POST
    • Get All Knowledge Bots
      GET
    • Get Knowledge Bot by ID
      GET
    • Delete Knowledge Bot by ID
      DELETE
    • Update Knowledge Bot by ID
      PUT
  1. Documents

Update Document

PUT
/api/documents/{documentId}
document
Update a documents attributes.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://app.crbnai.com/api/documents/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "Tutorial: How to do X",
    "user_metadata": {
        "url": "https://google.de"
    }
}'
Response Response Example
{
  "id": "doc_01hdnmm8azwy6dhbsacx8w6c9k",
  "knowledge_bot_id": "kb_01ha1ntvyq68jxezgnkwr63wm1",
  "name": "Tutorial: How to do X",
  "status": "READY",
  "user_metadata": {
    "url": "https://google.de"
  }
}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
documentId
string 
required
Body Params application/json
name
string 
optional
The new name of the document.
user_metadata
string  | integer  | boolean  | array  | object  | number  | null 
optional
Arbitrary user metadata that will be returned in citations in a Knowledge Bot chat.
Examples

Responses

🟢200OK
text/plain
Body
object {0}
Previous
Download Document
Next
Add Document to Knowledge Bot
Built with