Create Player
It is no longer recommended to create new players through this endpoint. It is better to create new players by using any of the other Login endpoints that have a CreatePlayer property. Creates a new, anonymous ChilliConnect player account for a specific game. UserName, DisplayName, Email and Password details can be provided but are not required. Will return a ChilliConnectID
and ChilliConnectSecret
that uniquely identifies the newly created player. These details can be used to login to the players account via the LogInUsingChilliConnect
method.
/1.0/player/create
Header
Field | Type | Description |
---|---|---|
Game-Token |
String |
The Game within which to create the new player. |
Parameter
Field | Type | Description |
---|---|---|
UserName optional |
String |
The UserName of the new player account. If provided, this must be unique across all players within the game, contain only alpha, numeric, underscore or dash characters, and a minimum size of 3 characters, maximum 50. |
DisplayName optional |
String |
A non-unique DisplayName that can be used to identify the Player within the game. If provided it can contain only alpha, numeric, underscore or dash characters, and a minimum size of 3 characters, maximum 50. |
Email optional |
String |
Email address to be associated with the new player account. If provided, this must be unique across all players within the game. |
Password optional |
String |
Password to be assigned to the new player account. If provided must be greater than 6 and less than 50 characters in length. |
Country optional |
String |
Country of the player. Must be two letter country code ISO 3166-1 alpha-2. E.g. |
DeviceModel optional |
String |
Model of device being used by the player. E.g. |
DeviceType optional |
String |
Type of device being used by the player. Accepted values: |
Platform optional |
String |
Platform of the device being used by the player. Accepted values: |
AppVersion optional |
String |
The client version of your game. |
Success 200
Field | Type | Description |
---|---|---|
ChilliConnectID |
String |
The |
ChilliConnectSecret |
String |
The |
Error 401
Code | Description |
---|---|
1001 |
Invalid Game Token. The provided |
1013 |
Trial Expired. Trial Period Expired |
Error 403
Code | Description |
---|---|
10003 |
Account Restriction. Account does not have access to this feature, or has exceeded the usage limit. |
Error 409
Code | Description |
---|---|
2006 |
UserName Taken. The supplied |
2007 |
Email Taken. The supplied |
Error 422
Code | Description |
---|---|
1007 |
Invalid Request. One of more of the provided fields were not correctly formatted. The |
Error 500
Code | Description |
---|---|
1 |
Unexpected Error. An unexpected, fatal error has occurred. |
Error 503
Code | Description |
---|---|
1008 |
Temporary Service Error. A temporary error is preventing the request from being processed. |
Examples
HTTP/1.1 200 OK
{
"ChilliConnectID" : "284LD4sAB5Ygo2RSl8h4vVW48qAbA8Cr",
"ChilliConnectSecret" : "1cIVAEwPRP1czuPkqUEIQmXxwDfIVkGI"
}