Xsolla-logo

Partially update physical item

patch/v2/project/{project_id}/admin/items/physical_good/sku/{item_sku}

Partially updates a physical item.

Aliases for this endpoint:

  • /v2/project/{project_id}/admin/items/physical_good/id/{item_id}
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

Object with physical good data.

sku
string [ 1 .. 255 ] characters ^[a-zA-Z0-9_\\-–.]*$
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
media_list
Array of strings
groups
Array of strings
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_free
boolean
order
number
tax_categories
Array of strings
object
Array of objects
object

Weight of the item.

Responses
200

Physical item was successfully updated.

404

Physical item not found.

422

Invalid request.

Request samples
application/json
{
  • "sku": "updated_sku",
  • "name": {
    },
  • "groups": [
    ],
  • "attributes": [
    ],
  • "type": "physical_good",
  • "prices": [
    ],
  • "virtual_prices": [ ],
  • "long_description": {
    },
  • "description": {
    },
  • "image_url": "http://image2_1.png",
  • "is_free": false,
  • "order": 1,
  • "is_enabled": true,
  • "is_show_in_store": false,
  • "tax_categories": [
    ],
  • "weight": {
    },
  • "regions": [
    ],
  • "pre_order": {
    }
}
Response samples
application/json
{
  • "statusCode": 200,
  • "message": "Physical item was successfully updated."
}