Create¶
Insert a new rank in this game.
HTTP request¶
POST https://megamify.com/api/v1/game/:game_id/rank/
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 | Game ID |
| name | True | string | Rank name |
| icon | True | string | Absolute URL for icon image (can be null) |
| index | True | int | Display order |
Response¶
Status: 201 Created
If successful, this method returns a Rank object in the response body.