POST /invites/:inviteId
Description
Accept an invitation to join a process or a team.
If the invite is for a team then the response will contain the updated player teams, the updated team object and the accepted invitation request.
If the invite is for a process then the response will contain the updated process performers and the accepted invitation request.
Resource URL
https://api.playlyfe.com/invites/:inviteId
Method
POST
Scopes
player, game, debug
Parameters
Location | Parameter Name | Default Value | Description |
---|---|---|---|
Query | inviteId | Invitation request ID |
Examples
Accepting an invatation to join a process
Request
POST https://api.playlyfe.com/invites/520512b563c67d641e000002
Response
{ "event": "invite", "timestamp": "2014-03-02T12:40:59.883Z", "actor": { "id": "neo", "alias": "Neo" }, "invitee": { "id": "morpheus", "alias": "Morpheus" }, "process": { "id": "neo/5312096a8e1ebb4550a6a6f8", "name": "The Matrix" }, "roles": { "~": "player" }, "state": "ACCEPTED", "id": "e867bbb0-a207-11e3-8944-cf733dc482f6", "accepted_at": "2014-03-02T12:41:20.737Z" }
Accepting an invitation to join a team
Request
POST https://api.playlyfe.com/invites/520512b563c67d641e000005
Response
{ "event": "invite", "timestamp": "2014-03-02T12:34:08.613Z", "actor": { "id": "neo", "alias": "Neo" }, "invitee": { "id": "morpheus", "alias": "Morpheus" }, "team": { "id": "53122d80188101a72a668a63", "name": "Titans" }, "roles": { "God": true }, "state": "ACCEPTED", "id": "f344e950-a206-11e3-b0b2-6be1ca7db7ba", "accepted_at": "2014-03-02T12:34:34.474Z" }