Update document
Changes the tags used to organize a Datasphere document and constrain knowledge retrieval. This operation does not replace the source URL or reconfigure chunking. Search document content through [Search documents](/docs/apis/rest/documents/search-documents).
#### Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: _DataSphere_.
[Learn more about API scopes](/docs/platform/your-signalwire-api-space).
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)
```
Path parameters
id
Unique ID of a Document.
Request
This endpoint expects an object.
Response
The request has succeeded.
id
Unique ID of the Document.
filename
Name of the Document.
status
Status of the Document.
chunking_strategy
Strategy used to chunk the document.
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.
Errors
400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
422
Unprocessable Entity Error
500
Internal Server Error