Xsolla-logo

Update user’s attributes from server

post/attributes/users/{user_id}/update

Updates and creates user’s attributes.

SecurityAttributesServer
Request
path Parameters
user_id
required
string <uuid>

User ID. You can find it in Publisher Account > Login settings > Users > Username/ID.

Request Body schema: application/json
publisher_id
required
integer or null

Your merchant ID the request is made for. Need for request authorizing.

Array of objects

List of attributes of the specified game. To add attribute which does not exist, set this attribute to the key parameter. To update value of the attribute, specify its key parameter and set new value. You can change several attributes at a time.

publisher_project_id
integer

Project ID from Publisher Account which you want to update the value of specified attributes for. If you do not specify it, it updates attributes that are general to all games only.

removing_keys
Array of strings

List of attributes which you want to delete. If you specify the same attribute in attributes parameter, it will not be deleted.

Responses
204

No Content

400

Bad Request

403

Unprocessable Entity

422

Unprocessable Entity

429

Too Many Requests

Request samples
application/json
{
  • "attributes": [
    ],
  • "publisher_id": 0,
  • "publisher_project_id": 0,
  • "removing_keys": [
    ]
}
Response samples
{
  • "error": {
    }
}