Create Key Value Pair
POST
https://api.lootlocker.com/game/v1/asset/instance/{instance_id}/storage
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.lootlocker.com/game/v1/asset/instance/19/storage' \
--header 'x-session-token: ' \
--header 'x-session-token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"key": "a fourth key",
"value": "some value"
}'
Response Response Example
200 - Success
{
"success": true,
"storage": [
{
"id": 1,
"key": "a key",
"value": "some value"
},
{
"id": 2,
"key": "another key",
"value": "some value"
},
{
"id": 3,
"key": "a third key",
"value": "some value"
},
{
"id": 4,
"key": "a fourth key",
"value": "some value"
}
]
}
Request
Path Params
instance_id
stringÂ
required
Example:
19
Header Params
x-session-token
stringÂ
required
Example:
{{session_token}}
Body Params application/json
Responses
Modified at 2024-09-09 08:01:55