curl --request PUT \
--url https://api.egp.scale.com/v4/account-groups/general-role-restrictions/{role} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"restriction_type": "user_group",
"restriction": {
"group_ids": [
"<string>"
]
}
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Create or update a restriction for an account group general role in your organization. Only available for organizations that have role restrictions enabled and only performable by organization admins.
curl --request PUT \
--url https://api.egp.scale.com/v4/account-groups/general-role-restrictions/{role} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"restriction_type": "user_group",
"restriction": {
"group_ids": [
"<string>"
]
}
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}admin The type of restriction
user_group Successful Response