Team Members

Update a team member's roles

Changed on

Update an existing active team member. Team key can be ID or slug. Replaces role assignments. Cannot modify isOwner (use transfer endpoint instead).

patch/teams/{key}/members/{userId}

Request

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

Path parameters

key, string required
userId, string required

Request body

object required
id, string required

Team member ID to update

roleIds, string[] required

Replace role assignments for this team member with the provided role IDs.

isOwner, boolean

Whether this team member is an owner of the team

access, object

Optional promoter access assignment. Omit to update only role assignments.

Response

OK

object required
member, object required

Active team member with base permissions. Permissions can be overridden per promoter or venue. Created when a user accepts an invitation or is directly added to a team.

Example response

{
  "member": {
    "permissions": [
      "event.read",
      "event.write",
      "order.read"
    ]
  }
}

Changes

    • breaking

      the access/promoterIds/anyOf[subschema #1] request property's minItems was increased to 1

    • breaking

      the roleIds request property's minItems was increased to 1

    • breaking

      added the pattern ^pmt_[0-9a-z]{26}$ to the request property access/promoterIds/anyOf[subschema #1]/items

    6 more changes in this revision