GET /teams/:teamId/approvals
Description
Get a list of pending player requests to join a team.
A pending request can be approved by a player who is already a part of the team with the required permissions.
A player who cannot approve any new player to join the team will get an error when he requests the list of approvals.
Resource URL
https://api.playlyfe.com/teams/:teamId/approvals
Method
GET
Scopes
player, game, debug
Parameters
Location | Parameter Name | Default Value | Description |
---|---|---|---|
Query | teamId | The team ID |
Example
Request
GET https://api.playlyfe.com/teams/hackers/approvals
Response
{ "data": [ { "event": "join:request", "timestamp": "2014-03-01T18:58:22.142Z", "actor": { "id": "morpheus", "alias": "Morpheus" }, "roles": { "Member": true }, "state": "PENDING", "id": "75d485e0-a173-11e3-b581-1b9a3fec215b" }, { "event": "join:request", "timestamp": "2014-03-02T18:11:56.928Z", "actor": { "id": "trinity", "alias": "Trinity" }, "roles": { "Member": true }, "state": "PENDING", "id": "24205800-a236-11e3-9af5-753d0e60669a" } ], "total": 2 }