document ID)content_type (Text, required): Specifies the type of content being uploaded.source (Text/File, required): The content itself — either a text string, a URL, or a file (PDF/DOCX/etc.)upload_from (Text, required): Indicates where the upload is coming from (e.g., web).user_id (required): ID of the user performing the upload.content_type: filesource (File): The file to upload (e.g., sample.pdf, report.docx, notes.txt, data.xlsx)content_type: textsource (Text): Any text string (e.g., "I am learning...")content_type: weblinksource (Text): A valid URL (e.g., https://example.com/doc.pdf or https://example.com/article)curl --location -g --request POST 'https:///v2/api/corpus/0/document' \
--header 'Ocp-Apim-Subscription-Key: ' \
--header 'Authorization: Bearer ' \
--form 'content_type="text"' \
--form 'source="Example Source"' \
--form 'upload_from="web"' \
--form 'user_id="147"'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"statusQueryGetUri": "http://example.com",
"sendEventPostUri": "http://example.com",
"terminatePostUri": "http://example.com",
"rewindPostUri": "http://example.com",
"purgeHistoryDeleteUri": "http://example.com",
"restartPostUri": "http://example.com",
"suspendPostUri": "http://example.com",
"resumePostUri": "http://example.com"
}