Confirms that the file has been uploaded to S3. Verifies the file exists and transitions the document status from uploading to ready. Must be called after uploading to the presigned URL.
uploading
ready
cURL
curl --request POST \ --url https://api.vocobase.com/api/v2/documents/{id}/confirm \ --header 'Authorization: Bearer <token>'
{ "success": true, "data": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "description": "<string>", "type": "pdf", "status": "uploading", "file_size": 123, "mime_type": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" } }
API key in format: rg_live_xxxx. Pass as a Bearer token in the Authorization header.
rg_live_xxxx
Document ID returned from the upload endpoint.
Upload confirmed, document is now ready.
Show child attributes