Create an Access Code for Player
| Code | Description |
|---|---|
| 400 | Bad Request: body has wrong syntax or unable to handle request |
| 401 | Unauthorized: auth_token omitted or authentication failed |
| 403 | Forbidden: This action cannot be performed |
| 404 | Not Found: The requested resource could not be found |
| 406 | Not Acceptable: Accept or Content-Type headers must be application/json, text/csv or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet |
REQUEST
Content-Type: application/json
{
"max_uses": 1
}
RESPONSE
201 (Created)
{
"value": "mI2y0ez1",
"expiry_date": 0,
"max_uses": 1,
"creation_method": "access_request",
"id": 11,
"created_at": 1431026485,
"updated_at": 1431026485,
"player_id": 39
}
| Param name | Description |
|---|---|
|
auth_token optional |
API token needed to authorize requests Validations:
|
|
max_uses optional |
Set a maximum use limit for the access code Validations:
|
|
value optional |
The access code value Validations:
|
|
expiry_date optional |
Set expiry date for the access code Validations:
|