Hit the Try it button to try this API now in our playground. It’s the best way to check the full request and response in one place, customize your parameters, and generate ready-to-use code snippets.
Examples
API Request
TypeScript
Python (Sync)
curl --request PATCH \
--url 'https://api.usecortex.ai/upload/batch_update?tenant_id=tenant_1234&sub_tenant_id=sub_tenant_4567' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: multipart/form-data' \
--form files=@example-file \
--form 'source_ids=[
"<string>"
]' \
--form 'tenant_metadata={}' \
--form 'document_metadata={}'
Update multiple sources in bulk, creating new entries for any source_id that doesn’t exist (upsert operation).
Provide one source_id per file. The number of source_ids must match the number of files.
Error Responses
All endpoints return consistent error responses following the standard format. For detailed error information, see our Error Responses documentation.uploaded
FileUploadResult · object[]
required