cURL
curl --request PATCH \ --url https://api.orchata.ai/api/documents/{id} \ --header 'Content-Type: application/json' \ --header 'Oai-Api-Key: <api-key>' \ --data ' { "spaceId": "space_123", "status": "PENDING", "errorMessage": "<string>", "metadata": {}, "content": "<string>" } '
{ "document": { "id": "<string>", "orgId": "<string>", "spaceId": "<string>", "filename": "<string>", "mimeType": "<string>", "fileSize": "<string>", "storageUrl": "<string>", "status": "<string>", "errorMessage": "<string>", "embeddingModel": "<string>", "indexingType": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "metadata": "<unknown>" } }
Update an existing document’s status, error message, or metadata
"document_123"
Document update data
The ID of the space containing the document
"space_123"
PENDING
PROCESSING
COMPLETED
FAILED
Show child attributes
1 - 10000000
Document updated successfully
Was this page helpful?