Create¶
Insert a new checkin in this game.
HTTP request¶
POST https://megamify.com/api/v1/game/:game_id/checkin/
Parameters¶
| Name | Required | Type | Description |
|---|---|---|---|
| game_id | True | int | The Game ID |
Headers¶
See Security section of the API Reference.
Body¶
| Name | Required | Type | Description |
|---|---|---|---|
| game | True | int | The Game ID |
| name | True | string | The display name |
| code | True | string | The unique code |
| metadata | False | object | Custom data |
| address | False | string | The address |
| city | False | string | The city |
| state | False | string | The state |
| postal_code | False | string | The postal code |
| country | False | string | The country |
| lat | False | float | The latitutde |
| lng | False | float | The longitude |
Response¶
Status: 201 Created
If successful, this method returns a Checkin object in the response body.