curl --location -g --request POST 'https:///api/v2/teams//permissions/batch' \
--header 'Ocp-Apim-Subscription-Key: ' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"grants": [
{
"subject_type": "user",
"subject_id": "456",
"relation": "admin"
},
{
"subject_type": "user",
"subject_id": "789",
"relation": "member"
},
{
"subject_type": "user",
"subject_id": "321",
"relation": "member"
}
]
}'{
"success": true,
"message": "string",
"data": {
"team_id": 0,
"granted": [
{
"subject_type": "string",
"subject_id": "string",
"subject_name": "string",
"relation": "string"
}
],
"failed": [
{
"subject_type": "string",
"subject_id": "string",
"subject_name": "string",
"error": "string"
}
],
"granted_at": "2019-08-24T14:15:22.123Z"
}
}