Skip to main content
PUT
/
v4
/
account-groups
/
general-role-restrictions
/
{role}
Upsert General Role Restriction
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>"
    }
  ]
}

Authorizations

x-api-key
string
header
required

Headers

x-selected-account-id
string

Path Parameters

role
enum<string>
required
Available options:
admin

Body

application/json
restriction_type
enum<string>
required

The type of restriction

Available options:
user_group
restriction
UserGroupRoleRestriction · object
required

The restriction (currently only user group restrictions)

Response

Successful Response