Xsolla-logo

Update user’s read-only attributes from server

post/attributes/users/{user_id}/update_read_only

Updates and creates user’s read-only attributes.

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

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.

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_id": 0,
  • "publisher_project_id": 0,
  • "removing_keys": [
    ]
}
Response samples
{
  • "error": {
    }
}