PUT
/
v5
/
general-role-restrictions
/
{role}
Create or update a restriction for an account 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/v5/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:
TitleConst
RoleRestrictionTypeuser_group
restriction
object
required

The restriction (currently only user group restrictions)

Response

Successful Response

The response is of type any.