Update a Document
PUT
/api/v2/documents/{document_id}
Documentsv2
This endpoint is ideal for modifying or correcting the data of a document post-upload.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT '/api/v2/documents/' \
--header 'Content-Type: application/json' \
--data-raw '{
"step": "string",
"description": "string",
"tags": [
"string"
],
"source": "string",
"access_url": "string",
"text": "string"
}'
Response Response Example
200 - Example 1
{
"success": true,
"message": "string",
"data": {
"id": 0,
"user": {
"id": 0,
"email": "user@example.com",
"first_name": "string",
"last_name": "string",
"organization": 0
},
"tags": [
"string"
],
"created_by": "string",
"created_on": "2019-08-24T14:15:22Z",
"modified_by": "string",
"modified_on": "2019-08-24T14:15:22Z",
"type": "file",
"source": "string",
"access_url": "string",
"text": "string",
"description": "string",
"is_deleted": true,
"upload_from": "string",
"step": "pending",
"is_failed": true,
"summary_token_usage": {
"property1": null,
"property2": null
},
"keywords_question_token_usage": {
"property1": null,
"property2": null
},
"pages": -2147483648,
"corpus": 0
}
}
Request
Path Params
document_id
integerÂ
required
Body Params application/json