Updates a game in the project by SKU.
Object with game data.
sku required | string 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 | Array of objects Game keys for different DRMs. |
object Object with localizations for item's description. Two-letter lowercase language code. | |
object Object with localizations for long description of item. Two-letter lowercase language code. | |
image_url | string Image URL. |
Array of objects Game additional assets such as screenshots, gameplay video, etc. | |
order | integer Game order priority in the list. |
Array of objects Groups the item belongs to. | |
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.
| |
is_enabled | boolean If disabled, item cannot be purchased and accessed through inventory. |
is_show_in_store | boolean Item is available for purchase. |
Game was successfully updated.
Basic authentication not passed or wrong. Make sure you used basic authentication or correct credentials.
Game not found.
Invalid request.
{- "sku": "game_1",
- "name": [
- {
- "en-US": "Game name"
}, - {
- "ru-RU": "Название игры"
}
], - "description": [
- {
- "en-US": "Game description"
}, - {
- "ru-RU": "Краткое описание игры"
}
], - "long_description": [
- {
- "en-US": "Game long description"
}, - {
- "ru-RU": "Полное описание игры"
}
], - "media_list": [
], - "groups": [
- "new_games"
], - "is_enabled": true,
- "is_show_in_store": true,
- "unit_items": [
- {
- "sku": "game_key_1",
- "name": [
- {
- "en-US": "Game key name"
}, - {
- "ru-RU": "Название игрового ключа"
}
], - "drm_sku": "steam",
- "prices": [
- {
- "amount": 35.5,
- "currency": "USD",
- "is_enabled": true,
- "is_default": true
}
], - "vc_prices": [
- {
- "amount": 35.5,
- "sku": "gold",
- "is_enabled": true,
- "is_default": true
}
], - "is_enabled": true,
- "is_free": false,
- "is_show_in_store": true,
- "pre_order": {
- "release_date": "2020-08-11T10:00:00+03:00",
- "is_enabled": true,
- "description": "Some description"
}
}
]
}
{- "statusCode": 401,
- "errorCode": 1020,
- "errorMessage": "[0401-1020]: Error in Authentication method occurred"
}