name
: A required field representing the title of the corpus. It should be descriptive and unique within the user’s context.description
: An optional field for providing additional context about the corpus’s purpose or content.curl --location -g --request POST 'https:///v2/api/corpus' \
--header 'Ocp-Apim-Subscription-Key: ' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Testing",
"description": "This corpus is for testing purposes"
}'
{
"id": 484,
"indexing_mode": {
"id": 1,
"mode": "exhaustive"
},
"created_by": "admin.ai",
"created_on": "2024-08-30T15:31:55.369957Z",
"modified_by": "",
"modified_on": "2024-08-30T15:31:55.369973Z",
"name": "Testing",
"description": "This corpus is for testing purposes",
"is_public": false,
"is_deleted": false,
"owner": 1,
"org": 1
}