Team Invites

Accept a team invitation

Changed on

Accept a pending team invitation using the secure token. Team key can be ID or slug. This deletes the invitation and creates an active TeamMember record. Returns the newly created team member.

patch/teams/{key}/invites/{inviteId}

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)

inviteId, string required

Team invite ID to accept

Request body

object required
token, string required

Secure token used to accept the team invite. This token must match the one sent in the invitation email.

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

    • info

      the member/access/promoterIds/anyOf[subschema #1]/items response's property pattern ^pmt_[0-9a-z]{26}$ was added for the status

    • info

      the member/id response's property pattern ^mbr_[0-9a-z]{26}$ was added for the status

    • info

      the member/permissions/items response's property pattern ^-?(?:\*|(?:[a-z][a-z0-9-]*)(?:\.[a-z][a-z0-9-]*)*(?:\.\*|\.bypass|\.[a-z]{3}_[0-9a-z]{26})?)$ was added for the status

    3 more changes in this revision