Create¶
Insert a new achievement in this game.
HTTP request¶
POST https://megamify.com/api/v1/game/:game_id/badge/
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 |
|---|---|---|---|
| display_name | True | string | The display name |
| description | True | string | The description |
| icon | False | file | The achievement icon image |
| state | False | int | The state (1=Hidden, 2=Redacted, 3=Revealed) |
| badge_type | False | int | The badge type (1=Default, 2=Incremental) |
| steps | False | int | The number of steps required to unlock |
| index | False | int | The position in the achievement list |
| custom_data | False | object | Custom data |
Response¶
Status: 201 Created
If successful, this method returns a Achievement object in the response body.