Knowledge

Create content

Create a new content for the organization.

post/orgs/knowledge/contents

Request

  • Base URL: https://api.useinvent.com
  • URL: https://api.useinvent.com/orgs/knowledge/contents
  • Auth: HTTP bearer

Request body

titlestring

Example request

{
  "content": {
    "file": {
      "file_filename": "document.pdf",
      "file_size": 1024,
      "file_mimetype": "application/pdf"
    }
  }
}

Response

The created content.

idstring required
titlestring required

Title of the vector

type'TEXT' | 'FILE' | 'URL' required

Type of the vector content

parent_content_idstring

Parent content ID

sizenumber required

Size of the vector in bytes

chunks_processednumber required

Number of chunks processed for the vector

chunks_countnumber required

Number of chunks in the vector

errorstring nullable required

Error message if vector processing failed

status'PENDING' | 'PROCESSING' | 'PROCESSED' | 'FAILED' required

Status of vector processing

created_atstring date-time nullable required
updated_atstring date-time nullable required

Example response

{
  "content": {
    "file": {
      "file_filename": "document.pdf",
      "file_size": 1024,
      "file_mimetype": "application/pdf"
    }
  },
  "children": [
    {
      "content": {
        "file": {
          "file_filename": "document.pdf",
          "file_size": 1024,
          "file_mimetype": "application/pdf"
        }
      }
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.