Write a storage object (client)
nakama_write_storage_objectStore or update player data as the authenticated user. Specify collection, key, and value; use version '*' to require the object not already exist.
Instructions
Write or update a single storage object as the authenticated player (call nakama_authenticate first). Pass value as an object or JSON string. Use version '*' to require the object not already exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collection | Yes | Collection name. | |
| key | Yes | Object key. | |
| value | Yes | Object value (object or JSON string). | |
| version | No | Optimistic-concurrency version; '*' means must-not-exist. | |
| permission_read | No | 0=none, 1=owner (default), 2=public. | |
| permission_write | No | 0=none, 1=owner (default). |