Team Members

Add an existing user to a team

Changed on

Directly add an existing user to a team. Team key can be ID or slug. Requires at least one role ID. To invite a new user by email, use the team invites endpoint instead.

post/teams/{key}/members

Request

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

Path parameters

key, string required

Team identifier (ID or slug)

Request body

object required
userId, string required

User ID of the team member

roleIds, string[] required

Role IDs assigned to this team member.

access, object

Optional promoter access assignment. Omit to preserve existing team-wide behavior.

isOwner, unknown

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

    7 more changes in this revision