Updates a bundle.
project_id required | integer Project ID. You can find this parameter in your Publisher Account next to the name of the project. Example: 44056 |
sku required | string Bundle SKU. Example: kg_1 |
Object with bundle data.
sku required | string [ 1 .. 255 ] characters ^[a-zA-Z0-9_\\-–.]*$ Unique item ID. The SKU may only contain lowercase Latin alphanumeric characters, periods, dashes, and underscores. | ||||||||||||||||||||||||||||||||||||||||
required | object Object with localizations for item's name. Two-letter lowercase language code. | ||||||||||||||||||||||||||||||||||||||||
required | object Object with localizations for item's description. Two-letter lowercase language code. | ||||||||||||||||||||||||||||||||||||||||
groups | Array of strings Default: [] Groups the item belongs to. Note. The string value refers to group `external_id`. | ||||||||||||||||||||||||||||||||||||||||
Array of objects <= 20 items List of attributes. Attention. You can't specify more than 20 attributes for the item. Any attempts to exceed the limit result in an error.
| |||||||||||||||||||||||||||||||||||||||||
Array (<= 20 items) | |||||||||||||||||||||||||||||||||||||||||
object Object with localizations for long description of item. Two-letter lowercase language code. | |||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||
image_url | string or null Image URL. | ||||||||||||||||||||||||||||||||||||||||
Array of objects Prices in real currencies. | |||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||
Array of objects or null | |||||||||||||||||||||||||||||||||||||||||
Array of objects non-empty | |||||||||||||||||||||||||||||||||||||||||
is_free | boolean Default: false If | ||||||||||||||||||||||||||||||||||||||||
is_enabled | boolean Default: true If disabled, the item can't be found and purchased. | ||||||||||||||||||||||||||||||||||||||||
is_show_in_store | boolean Default: false Item is available for purchase. | ||||||||||||||||||||||||||||||||||||||||
Array of objects or null Bundle's additional assets. | |||||||||||||||||||||||||||||||||||||||||
order | integer Default: 1 Bundle's order priority in the list. | ||||||||||||||||||||||||||||||||||||||||
Array of objects | |||||||||||||||||||||||||||||||||||||||||
object Item limits. | |||||||||||||||||||||||||||||||||||||||||
Array of objects or null Item sales period. | |||||||||||||||||||||||||||||||||||||||||
custom_attributes | object <json> <= 500 characters A JSON object containing item attributes and values. Attributes allow you to add more info to items like the player's required level to use the item. Attributes enrich your game's internal logic and are accessible through dedicated GET methods and webhooks. |
Bundle was successfully updated.
Basic authentication not passed or wrong. Make sure you used basic authentication or correct credentials.
Invalid request.
{- "sku": "armour_chest",
- "name": {
- "en-US": "Chest of armour",
- "de-DE": "Brustpanzer"
}, - "is_enabled": true,
- "is_free": true,
- "order": 1,
- "long_description": {
- "en-US": "Chest of armour for soldiers",
- "de-DE": "Brustpanzer für Soldaten"
}, - "description": {
- "en-US": "Chest of armour for soldiers",
- "de-DE": "Brustpanzer für Soldaten"
}, - "media_list": [
], - "groups": [
- "chests"
], - "attributes": {
- "attributes": [
- {
- "external_id": "class",
- "name": {
- "en-US": "Class"
}, - "values": [
- {
- "external_id": "soldier",
- "value": {
- "en-US": "Soldier"
}
}, - {
- "external_id": "officer",
- "value": {
- "en-US": "Officer"
}
}
]
}
]
}, - "prices": [
- {
- "currency": "USD",
- "amount": 9.99,
- "is_default": true,
- "is_enabled": true
}, - {
- "currency": "EUR",
- "amount": 9.99,
- "is_default": false,
- "is_enabled": true
}
], - "vc_prices": null,
- "content": [
- {
- "sku": "iron_gloves",
- "quantity": 1
}, - {
- "sku": "iron_boots",
- "quantity": 1
}, - {
- "sku": "iron_shield",
- "quantity": 1
}, - {
- "sku": "iron_armour",
- "quantity": 1
}, - {
- "sku": "iron_helmet",
- "quantity": 1
}
], - "limits": {
- "per_user": null,
- "per_item": null
}, - "periods": [
- {
- "date_from": "2020-08-11T10:00:00+03:00",
- "date_until": "2020-08-11T20:00:00+03:00"
}
], - "custom_attributes": {
- "type": "lootbox",
- "purchased": 0
}
}
{- "statusCode": 401,
- "errorCode": 1020,
- "errorMessage": "[0401-1020]: Error in Authentication method occurred"
}