PUT
/
v4
/
accounts
/
general-role-restrictions
/
{role}
curl --request PUT \
  --url https://api.egp.scale.com/v4/accounts/general-role-restrictions/{role} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "restriction_type": "user_group",
  "restriction": {
    "group_ids": [
      "<string>"
    ]
  }
}'
"<any>"

Authorizations

x-api-key
string
header
required

Headers

x-selected-account-id
string | null

Path Parameters

role
enum<string>
required
Available options:
manager,
member,
labeler

Body

application/json
restriction_type
enum<string>
required

The type of restriction

Available options:
user_group
restriction
object
required

The restriction (currently only user group restrictions)

Response

201
application/json
Successful Response

The response is of type any.