curl --location --request POST '/api/corpus/0/permissions' \
--header 'Ocp-Apim-Subscription-Key: {{your-api-key}}' \
--header 'Authorization: Bearer {{your-access-token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"shared_to": "user@example.com",
"permissions": [
"view_corpus",
"change_corpus"
]
}'
{
"message": "Permissions successfully assigned to user@example.com"
}