Skip to main content
POST
/
api
/
docs
/
doc
Creates a new document and initializes its empty content record.
curl --request POST \
  --url https://{install}/api/docs/doc \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "entity": "<string>",
  "folderId": "<string>",
  "name": "<string>",
  "context": [
    {
      "owner": 123,
      "ownerId": "<string>"
    }
  ],
  "restrictedTo": [
    "<string>"
  ],
  "aiAccess": true,
  "archived": true,
  "author": "<string>",
  "tenantId": "<string>",
  "id": "<string>",
  "created": "2023-11-07T05:31:56Z",
  "createdBy": "<string>",
  "updated": "2023-11-07T05:31:56Z",
  "updatedBy": "<string>",
  "deleted": true
}
'
{
  "entity": "<string>",
  "folderId": "<string>",
  "name": "<string>",
  "context": [
    {
      "owner": 123,
      "ownerId": "<string>"
    }
  ],
  "restrictedTo": [
    "<string>"
  ],
  "aiAccess": true,
  "archived": true,
  "author": "<string>",
  "tenantId": "<string>",
  "id": "<string>",
  "created": "2023-11-07T05:31:56Z",
  "createdBy": "<string>",
  "updated": "2023-11-07T05:31:56Z",
  "updatedBy": "<string>",
  "deleted": true
}

Documentation Index

Fetch the complete documentation index at: https://ekso.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

JWT Bearer token. Obtain via the OAuth 2.0 token endpoint.

Body

The document to create, including folder, name, context, and access restrictions.

entity
null | string
folderId
string
name
string
context
object[]
restrictedTo
string[]
aiAccess
boolean
archived
boolean
author
string
tenantId
string
id
string
created
string<date-time>
createdBy
string
updated
string<date-time>
updatedBy
string
deleted
boolean

Response

The newly created document.

entity
null | string
folderId
string
name
string
context
object[]
restrictedTo
string[]
aiAccess
boolean
archived
boolean
author
string
tenantId
string
id
string
created
string<date-time>
createdBy
string
updated
string<date-time>
updatedBy
string
deleted
boolean