Teams

Start team deletion

Changed on

Soft-delete a team immediately and queue its asynchronous cleanup by ID or slug

delete/teams/{key}

Request

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

Path parameters

key, string required

Team key - either a unique ID (tem_xxx format) or URL-friendly slug

Example:tem_01jqpjksnsen9vprw95et60t2m

Response

OK

object required

Accepted team deletion request and its operation state

team, object required
deletion, object required

Asynchronous team deletion operation

Example response

{
  "team": {
    "publicBaseUrl": "https://sash.net.au",
    "image": {
      "src": "https://assets.session.services/my-image.jpg",
      "alt": "My Image",
      "width": 1080,
      "height": 1080
    },
    "member": {
      "permissions": []
    }
  }
}

Changes

    • warning

      added the new PAYMENTS_NOT_READY enum value to the team/stripeConnectAvailability/reasons/items response property for the response status

    • info

      added the optional property team/gateway/readiness to the response with the status

    • breaking

      for the path request parameter key, the minLength was increased from 0 to 1

    6 more changes in this revision