DELETE /teams/:teamId/invites/:inviteId

Description

Cancel a pending invite sent out by the player.

It returns the canceled invitation request.

For more information about team invitations check out Invitations

Resource URL

https://api.playlyfe.com/teams/:teamId/invites/:inviteId

Method

POST

Scopes

player, game, debug

Parameters

LocationParameter NameDefault ValueDescription
QueryteamIdThe team ID
QueryinviteIdThe invitation ID

Example

Request
DELETE https://api.playlyfe.com/teams/avengers/invites/520512b563c67d641e000003
Response
{
  "event": "invite",
  "timestamp": "2014-03-02T18:03:59.848Z"
  "team": {
    "id": "hackers",
    "name": "Hackers"
  },
  "actor": {
    "id": "neo",
    "name": "Neo"
  },
  "invitee": {
    "id": "trinity",
    "name": "Trinity"
  },
  "roles": {
    "Member": true
  },
  "state": "CANCELLED",
  "id": "052de920-a174-11e3-b581-1b9a3fec215b"
  "cancelled_at": "2014-03-02T18:04:08.507Z"
}