DELETE /teams/:teamId/approvals/:requestId

Description

Reject a player request to join a team.

The player who rejects the request must have sufficient privileges to do so.

It returns the rejected approval request.

For more information about team approvals check out Approvals

Resource URL

https://api.playlyfe.com/teams/:teamId/approvals/:requestId

Method

DELETE

Scopes

player, game, debug

Parameters

LocationParameter NameDefault ValueDescription
QueryteamIdThe team ID
QueryrequestIdThe approval request ID

Example

Request
DELETE https://api.playlyfe.com/teams/hackers/approvals/98548650-a24b-11e3-9af5-753d0e60669a
Response
{
  "event": "join:request",
  "timestamp": "2014-03-02T20:45:31.317Z",
  "actor": {
    "id": "neo",
    "alias": "Neo"
  },
  "team": {
    "id": "hackers",
    "name": "The Hackers"
  },
  "roles": {
    "God": true
  },
  "state": "REJECTED",
  "id": "98548650-a24b-11e3-9af5-753d0e60669a",
  "rejected_by": {
    "id": "morpheus",
    "alias": "Morpheus"
  },
  "rejected_at": "2014-03-02T20:45:47.679Z"
}