Team Invites

Cancel a pending invitation

Changed on

Cancel a pending team invitation before it is accepted. Team key can be ID or slug. Deletes the invitation record.

delete/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 cancel

Response

OK

object required
invite, object required

Pending team invitation. Automatically deleted after 7 days via DynamoDB TTL. When accepted, creates a TeamMember record and deletes the invitation.

Example response

{
  "invite": {
    "permissions": []
  }
}

Changes

    • info

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

    • info

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

    • info

      the invite/invitedBy response's property pattern ^usr_[0-9a-z]{26}$ was added for the status

    2 more changes in this revision