Xsolla-logo

Update game by ID

put/v2/project/{project_id}/admin/items/game/id/{item_id}

Updates a game in the project by ID.

SecuritybasicAuth
Request
path Parameters
project_id
required
integer

Project ID.

Example: 44056
item_id
required
string

Item ID.

Example: 656
Request Body schema: application/json

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.

Responses
201

Game was successfully updated.

401

Basic authentication not passed or wrong. Make sure you used basic authentication or correct credentials.

404

Game not found.

422

Invalid request.

Request samples
application/json
{
  • "sku": "game_1",
  • "name": [
    ],
  • "description": [
    ],
  • "long_description": [
    ],
  • "image_url": "http://image.png",
  • "media_list": [],
  • "groups": [
    ],
  • "is_enabled": true,
  • "is_show_in_store": true,
  • "unit_items": [
    ]
}
Response samples
application/json
{
  • "statusCode": 401,
  • "errorCode": 1020,
  • "errorMessage": "[0401-1020]: Error in Authentication method occurred"
}