Update¶
Update a achievement with the given ID.
HTTP request¶
PUT https://megamify.com/api/v1/game/:game_id/badge/:badge_id/
Parameters¶
| Name | Required | Type | Description |
|---|---|---|---|
| game_id | True | int | The Game ID |
| badge_id | True | int | The Achievement 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: 200 OK
If successful, this method returns a Achievement object in the response body.