Achievements
Revoke Achievement
Remove an achievement unlock from a user. Returns 404 if the user did not have the achievement.
POST
/api/achievements/revoke.php
Requires
Authorization: AppID:AppKey headerIdentify the achievement (one of)
| Field | Type | Description |
|---|---|---|
| slug | string | Achievement slug |
| achievement_id | int | Numeric ID |
Identify the user (one of)
| Field | Type | Description |
|---|---|---|
| user_id | int | Numeric user ID |
| userkey | string | User's userKey |
| token | string | User's session token |
Test this endpoint
Headers
Body
Success response 200
{ "success": true }
Errors
| Code | Message | Cause |
|---|---|---|
| 401 | Invalid app credentials. | Bad AppID or AppKey |
| 404 | Achievement not found. | Slug/ID doesn't exist for this app |
| 404 | User does not have this achievement. | The user never unlocked it |