Permission Scopes

Update a permission scope

Changed on

Update an existing permission scope. Only the permissions array can be modified.

patch/teams/{key}/members/{memberId}/permission-scopes/{id}

Request

  • Base URL
    https://api.session.services
  • Auth
    API key in header x-tenant-id

Path parameters

key, string required
memberId, string required
id, string required

Request body

object required
permissions, string[] required

Scoped permissions. Can be empty array to remove all access. Replaces lower-tier permissions based on kind (VENUE overrides PROMOTER overrides BASE).

roleIds, string[]

Optional role IDs to apply at this scope.

Example request

{
  "permissions": [
    "team.read"
  ]
}

Response

OK

union required

Permission scope for a team member. Can be PROMOTER-specific (applies to all events by that promoter) or VENUE-specific (applies to all events at that venue). Replaces lower-tier permissions using REPLACE semantics.

object required

PROMOTER-specific permission scope. Applies to all events by the specified promoter.

OR
object required

VENUE-specific permission scope. Applies to all events at the specified venue.

Example response

{
  "permissions": [
    "team.read"
  ]
}

Changes

    • breaking

      added the pattern ^-?(?:\*|(?:[a-z][a-z0-9-]*)(?:\.[a-z][a-z0-9-]*)*(?:\.\*|\.bypass|\.[a-z]{3}_[0-9a-z]{26})?)$ to the request property permissions/items

    • info

      added subschema #1 subschema #2 to the response body anyOf list for the response status

    • info

      removed subschema #1 subschema #2 from the response body anyOf list for the response status