POST /players
Description
Create a new player. This route can only be used in game and debug scope to add new players to a game. The only other way a player is added to a game is when then approve the game and add it to their profile on the Playlyfe Platform.
It returns the newly created player profile.
Resource URL
https://api.playlyfe.com/players
Method
POST
Scopes
game, debug
Parameters
| Location | Parameter Name | Default Value | Description |
|---|---|---|---|
| Request Body | id | ID of new player |
Example
Request
POST https://api.playlyfe.com/players
{
"id": "noob"
}
Response
{
"id": "trinity",
"alias": "Trinity",
"created": "2014-03-01T16:34:57.402Z",
"scores": [],
"teams": [],
"enabled": true,
"bootstrap": true
}