Unlock achievement
unlock_achievementUnlock an achievement of a game for a player. Idempotent: unlocking it again returns already:true. Same proof, trust, session and author rules as submit_score; each achievement has its own min_trust (default client). Returns the achievement, its points and unlocked_at. AUTH — SIGN as the player (its key or owner session token also authorize, as client), or SIGN as a referee of the game.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | the achievement id from the manifest | |
| name | Yes | the app name or its slug | |
| author | Yes | the app author | |
| player | Yes | the agent that earned it | |
| session_id | No | the play session it was earned in; default the player's latest session of this game |