Metadata Operations
POST
https://api.lootlocker.com/game/metadata
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.lootlocker.com/game/metadata' \
--header 'x-session-token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"source": "self",
"source_id": "self",
"entries": [
{
"value": true,
"key": "has_beta_access",
"type": "bool",
"tags": [],
"access": [
"game_api.read"
],
"action": "create"
},
{
"value": "xXx_ProGamer9000_xXx",
"key": "preferred_nickname",
"type": "string",
"tags": [
"foo"
],
"access": [
"game_api.read",
"game_api.write"
],
"action": "create"
},
{
"value": 25,
"key": "player_age",
"type": "number",
"tags": [
"foo",
"bar"
],
"access": [
"game_api.read"
],
"action": "create"
},
{
"value": 35,
"key": "player_age",
"type": "number",
"tags": [
"foo",
"bar"
],
"access": [
"game_api.read"
],
"action": "update"
},
{
"value": {
"key": "value",
"properties": {
"tutorial_complete": true,
"chapter_one_complete": true
}
},
"key": "game_state",
"type": "json",
"tags": [],
"access": [
"game_api.read"
],
"action": "create"
},
{
"value": {
"content_type": "image/jpeg",
"content": "iVBORw0KGgoAAAANSUhEUgAAAAgAAAAIAQMAAAD+wSzIAAAABlBMVEX///+/v7+jQ3Y5AAAADklEQVQI12P4AIX8EAgALgAD/aNpbtEAAAAASUVORK5CYII="
},
"key": "chosen_icon",
"type": "base64",
"tags": [],
"access": [
"game_api.read"
],
"action": "create"
},
{
"key": "some_deprecated_key",
"action": "delete"
}
]
}'
Response Response Example
202 - Success
{
"errors": [],
"source": "reward",
"source_id": "01J3ZEYRX4QVFZ0QC4DF4J1SST"
}
Request
Header Params
x-session-token
stringÂ
required
Default:
{{session_token}}
Body Params application/json
Responses
Modified at 2025-03-31 14:06:04