Create¶
Insert a new currency in this game.
HTTP request¶
POST https://megamify.com/api/v1/game/:game_id/currency/
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 |
|---|---|---|---|
| currency_code | True | string | Three-letter currency code |
| display_name | True | string | The display name |
| initial_balance | True | int | The initial balance |
| max_balance | False | int | The max balance |
| custom_data | False | object | Custom data |
Response¶
Status: 201 Created
If successful, this method returns a Currency object in the response body.