GET /processes/:processId/approvals

Description

Get a list of pending player requests to join a process

A pending request can be approved by a player who is already a part of the process with the required permissions.

A player who cannot approve a new player to join the process will get an error when he requests the list of approvals.

Resource URL

https://api.playlyfe.com/processes/:processId/approvals

Method

GET

Scopes

player, game, debug

Parameters

LocationParameter NameDefault ValueDescription
QueryprocessIdThe process ID

Example

Request
GET https://api.playlyfe.com/processes/neo/therealmatrix/approvals
Response
{
  "data": [
    {
      "event": "join:request",
      "timestamp": "2014-03-01T19:02:22.642Z",
      "actor": {
        "id": "morpheus",
        "alias": "Morpheus"
      },
      "roles": {
        "~": "player"
      },
      "state": "PENDING",
      "id": "052de920-a174-11e3-b581-1b9a3fec215b"
    }
  ],
  "total": 1
}