Create a new document.
Create a new document.
Path Parameters
- project_id integer required
ID of the project
- application/json
Request Body required
- text string required
Document text
segments object
text string requiredSegment text
Responses
- 201
- 400
- 401
- 403
- 500
Document was created
- application/json
- Schema
- Example (from schema)
Schema
- text string
The document text
- id integer
The ID of the document.
{
"text": "Document 1",
"id": 18000
}
The body sent is invalid. Check the error message for more details
User is not authenticated. This means token is either not present or invalid
User is read-only or does not have the minimal project role "MANAGER"
Something is wrong with the API.
Loading...