Xsolla-logo

Update upsellServer-sideAdmin

put/v2/project/{project_id}/admin/items/upsell

Update an upsell for a project.

SecurityXsollaLoginUserJWT
Request
path Parameters
project_id
required
integer

Project ID. You can find this parameter in your Publisher Account next to the name of the project.

Example: 44056
Request Body schema: application/json
One of:

Upsell type.

is_enabled
required
boolean
type
required
string
Value: "fixed_list"
items
required
Array of strings
Default: null

Array of items SKU.

Responses
202

Upsell has been updated for the project.

401

Authentication not passed or wrong.

404

Item not found.

422

Invalid request.

Request samples
application/json
{
  • "is_enabled": true,
  • "type": "fixed_list",
  • "items": [
    ]
}
Response samples
application/json
{
  • "statusCode": 401,
  • "errorCode": 1501,
  • "errorMessage": "[0401-1501]: Authorization failed: Provide authorization"
}