Update Collectable
PATCH
https://api.lootlocker.io/admin/game/{game_id}/collectables/{id}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://api.lootlocker.io/admin/game/2/collectables/62' \
--header 'x-auth-token: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Some collectable test",
"grant_all": true,
"rewards": [
{
"asset_id": 12,
"asset_variation_id": null,
"asset_rental_option_id": null
}
],
"groups": [
{
"name": "Collectable Group",
"grant_all": false,
"items": [
{
"name": "Some Item",
"grant_all": false,
"rewards": [
{
"asset_id": 2,
"asset_variation_id": null,
"asset_rental_option_id": null
}
],
"expanded": true
},
{
"name": "Some Other Item",
"grant_all": false,
"rewards": [],
"expanded": false
}
],
"rewards": [
{
"asset_id": 6,
"asset_variation_id": null,
"asset_rental_option_id": null
}
]
}
]
}'
Response Response Example
{}
Request
Path Params
game_id
stringÂ
required
Example:
2
id
stringÂ
required
Example:
62
Header Params
x-auth-token
stringÂ
required
Example:
{{admin_auth_token}}
Body Params application/json
Responses
Modified at 2024-01-19 12:21:04