Create Group Reward
POST
https://api.lootlocker.io/admin/game/{game_id}/reward/group
rewards
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://api.lootlocker.io/admin/game//reward/group' \
--header 'x-auth-token: ' \
--header 'x-auth-token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Super useless!!",
"description": "Buying this item will change your life and provide a grand unified theory",
"associations": [
{
"entity_id": "01J3FV8M86AZG2VME5GS7D7WEY",
"entity_kind": "asset"
},
{
"entity_id": "01J3FV8M86AZG2VME5GS7D7WEY",
"entity_kind": "asset"
},
{
"entity_id": "01J3FV8M86AZG2VME5GS7D7WEY",
"entity_kind": "asset"
},
{
"entity_id": "01J3FV9BAAVMCREZHFH5XSCM6W",
"entity_kind": "currency",
"metadata": [
{
"key": "purchased_amount",
"value": "420"
}
]
}
]
}'
Response Response Example
{}
Request
Path Params
game_id
stringÂ
required
Example:
{{dev_game_id}}
Header Params
x-auth-token
stringÂ
required
Example:
{{admin_auth_token}}
Body Params application/json
Responses
Modified at 2024-07-31 07:59:53