POST /teams/:teamId/invites
Description
Invite a player to join a team.
The player must have a role with peer or assign permissions and the required rank.
It returns the invitation request.
For more information about team invitations check out Invitations
Resource URL
https://api.playlyfe.com/teams/:teamId/invites
Method
POST
Scopes
player, game, debug
Parameters
| Location | Parameter Name | Default Value | Description |
|---|---|---|---|
| Query | teamId | The team ID |
Example
Request
POST https://api.playlyfe.com/teams/avengers/invites
{
"id": "neo"
"roles": {
"Member":true
}
}
Response
{
"id": "1b669910-a257-11e3-92be-0395a5e3aad0",
"event": "invite",
"timestamp": "2014-03-02T22:07:55.681Z",
"actor": {
"id": "morpheus",
"alias": "Morpheus"
},
"invitee": {
"id": "neo",
"alias": "Neo"
},
"team": {
"id": "5313986386e830697700910c",
"name": "The Hackers"
},
"roles": {
"Member": true
},
"state": "PENDING"
}