curl --location -g --request POST 'https:///api/v2/corpora//permissions/batch' \
--header 'Ocp-Apim-Subscription-Key: ' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"grants": [
{
"subject_type": "user",
"subject_id": "string",
"relation": "viewer"
}
]
}'{
"success": true,
"message": "string",
"data": {
"corpus_id": 0,
"granted": [
{
"subject_type": "string",
"subject_id": "string",
"subject_name": "string",
"relation": "string"
}
],
"failed": [
{
"property1": "string",
"property2": "string"
}
],
"granted_at": "string"
}
}