Xsolla-logo

Update attribute value

put/v2/project/{project_id}/admin/attribute/{external_id}/value/{value_external_id}

Updates an attribute values.

Request
path Parameters
project_id
required
integer

Project ID.

Example: 44056
value_external_id
required
string^[-_\.\d\w]+$

Attribute value external ID.

Example: value_id
external_id
required
string

Attribute external ID.

Example: attribute_id
Request Body schema: application/json
external_id
required
string [ 1 .. 255 ] characters ^[-_.\d\w]+$

Unique value ID for an attribute. The external_id may only contain lowercase Latin alphanumeric characters, dashes, and underscores.

required
object
Default: {"en":"Strategy","de":"Strategie"}

Object with localizations of the value's name. Keys are specified in ISO 3166-1.

Responses
204

Attribute value was successfully updated.

401

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

403

Authorization header not sent.

404

Attribute value not found.

422

Invalid request.

Request samples
application/json
{
  • "external_id": "weapon_class_sword_value",
  • "value": {
    }
}
Response samples
application/json
{
  • "statusCode": 401,
  • "errorCode": 1020,
  • "errorMessage": "[0401-1020]: Error in Authentication method occurred"
}