Update¶
Update a currency with the given ID.
HTTP request¶
PUT https://megamify.com/api/v1/game/:game_id/currency/:currency_id/
Parameters¶
| Name | Required | Type | Description |
|---|---|---|---|
| game_id | True | int | The Game ID |
| currency_id | True | int | The Currency ID |
Headers¶
See Security section of the API Reference.
Body¶
| Name | Required | Type | Description |
|---|---|---|---|
| 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: 200 OK
If successful, this method returns a Currency object in the response body.