Create a Document
Creates a Datasphere Document.
Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: DataSphere.
Authentication
AuthorizationBasic
SignalWire Basic Authentication using Project ID and API Token.
The client sends HTTP requests with the Authorization header containing
the word Basic followed by a space and a base64-encoded string of project_id:token.
The project ID will be used as the username and the API token as the password.
Example:
```
Authorization: Basic base64(project_id:token)
```
Request
This endpoint expects an object.
Sentence strategy
OR
Sliding strategy
OR
Page strategy
OR
Paragraph strategy
Response
The request has succeeded and a new resource has been created as a result.
id
Unique ID of the Document.
filename
Name of the Document.
status
Status of the Document.
Allowed values:
chunking_strategy
Strategy used to chunk the document.
Allowed values:
max_sentences_per_chunk
Max Sentences per Chunk. Only present when chunking strategy is 'sentence', null otherwise.
split_newlines
Split on Newlines. Only present when chunking strategy is 'sentence', null otherwise.
overlap_size
Overlap Size. Only present when chunking strategy is 'sliding', null otherwise.
chunk_size
Chunk Size. Only present when chunking strategy is 'sliding', null otherwise.
number_of_chunks
Number of Chunks in the Document.
chunks_uri
URI path to the chunks for this document.
created_at
Document Creation Date.
updated_at
Document Update Date.