POST /teams/:teamId/approvals/:requestId

Description

Accept a player request to join a team.

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

It returns the updated player teams, the updated team state and the accepted approval request.

For more information about team approvals check out Approvals

Resource URL

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

Method

POST

Scopes

player, game, debug

Example

Request
POST https://api.playlyfe.com/teams/hackers/approvals/5f3acfa0-a250-11e3-9af5-753d0e60669a
Response
{
  "event": "join:request",
  "timestamp": "2014-03-02T21:19:43.002Z",
  "actor": {
    "id": "trinity",
    "alias": "Trinity"
  },
  "team": {
    "id": "hackers",
    "name": "The Hackers"
  },
  "roles": {
    "God": true
  },
  "state": "ACCEPTED",
  "id": "5f3acfa0-a250-11e3-9af5-753d0e60669a",
  "accepted_by": {
    "id": "morpheus",
    "alias": "Morpheus"
  },
  "accepted_at": "2014-03-02T22:03:06.948Z"
}