Xsolla-logo

Update virtual item

put/v2/project/{project_id}/admin/items/virtual_items/sku/{item_sku}

Updates a virtual item.

SecuritybasicAuth
Request
path Parameters
project_id
required
integer

Project ID.

Example: 44056
item_sku
required
string

Item SKU.

Example: booster_mega_1
Request Body schema: application/json
sku
string [ 1 .. 255 ] characters ^[a-zA-Z0-9_\\-–.]*$

Unique item ID. The SKU may only contain lowercase Latin alphanumeric characters, periods, dashes, and underscores.

object

Object with localizations for item's name. Two-letter lowercase language code.

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

Item's additional assets such as screenshots, gameplay video and so on.

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.
Array of objects
Array of objects
is_enabled
boolean
is_deleted
boolean
is_show_in_store
boolean
is_free
boolean
Default: false

If true, the item is free.

order
integer

Defines arrangement order.

object

Defines the inventory item options.

object
Array of objects
object

Item limits.

Responses
204

Virtual item was successfully updated.

401

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

422

Invalid request.

Request samples
application/json
{
  • "sku": "sword",
  • "name": {
    },
  • "is_enabled": true,
  • "is_free": false,
  • "order": 1,
  • "description": {
    },
  • "prices": [
    ],
  • "vc_prices": [ ],
  • "is_show_in_store": true,
  • "attributes": [
    ],
  • "limits": {
    }
}
Response samples
application/json
{
  • "statusCode": 401,
  • "errorCode": 1020,
  • "errorMessage": "[0401-1020]: Error in Authentication method occurred"
}