Xsolla-logo

Create attribute valueServer-sideAdmin

post/v2/project/{project_id}/admin/attribute/{external_id}/value

Creates an attribute value.

Attention

All projects have the limitation to the number of attribute values. The default and maximum value is 20 values per attribute.
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
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.

property name*
additional property
string
Responses
201

Attribute value was successfully created.

401

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

403

Authorization header not sent.

404

Attribute not found.

422

Invalid request.

Request samples
application/json
{
  • "external_id": "weapon_class_sword_value",
  • "value": {
    }
}
Response samples
application/json
{
  • "external_id": "rpg"
}