POST /processes/:processId/approvals/:requestId

Description

Accept a player request to join a process.

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

It returns the accepted approval request.

Resource URL

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

Method

POST

Scopes

player, game, debug

Parameters

LocationParameter NameDefault ValueDescription
QueryprocessIdThe process ID
QueryrequestIdThe approval request ID

Example

Request
POST https://api.playlyfe.com/processes/neo/therealmatrix/approvals/520512b563c67d641e000002
Response
{
  "event": "join:request",
  "timestamp": "2014-03-01T19:02:22.642Z",
  "actor": {
    "id": "morpheus",
    "alias": "Morpheus"
  },
  "process": {
    "id": "neo/therealmatrix",
    "name": "Protected"
  },
  "roles": {
    "~": "player"
  },
  "state": "ACCEPTED",
  "id": "052de920-a174-11e3-b581-1b9a3fec215b",
  "accepted_by": {
    "id": "neo",
    "alias": "Neo"
  },
  "accepted_at": "2014-03-02T17:51:42.157Z"
}