Xsolla-logo

Update user’s attributes from clientClient-side

post/attributes/users/me/update

Updates and creates particular user’s attributes.

Notice
Rate limits for client-side methods are applied to this method.

SecurityAttributesBearer
Request
Request Body schema: application/json
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 the new value. You can change several attributes at a time.

Array
key
required
string <= 256 characters [A-Za-z0-9_]+

Name of attribute that is used to identify user’s attribute. Must be unique per user.

value
required
string <= 256 characters

Value of user’s attribute.

permission
string or null

Definition of user’s access level to other users’ attributes.

Enum: "public" "private"
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, the method 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

Forbidden

422

Unprocessable Entity

429

Too Many Requests

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