Xsolla-logo

Update regionServer-sideAdmin

put/v2/project/{project_id}/admin/region/{region_id}

Updates particular region.

You can use a region for managing your regional restrictions.

SecuritybasicAuth
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
region_id
required
integer

Region ID. Unique region identifier within the project.

Example: 42
Request Body schema: application/json
countries
required
Array of strings

List of countries to be added in a region.
Two-letter uppercase country code per ISO 3166-1 alpha-2. Check the documentation for detailed information about countries supported by Xsolla.
Example: ["JP", "CN", "VN"]

required
object
Default: {"en-US":"Asia","de-DE":"Asien"}

Name of region. Should contain key/value pairs where key is a locale with the "^[a-z]{2}-[A-Z]{2}$" format, the value is string.

property name*
additional property
string
Responses
204

Region was successfully updated.

401

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

404

Region not found. Make sure the id is correct.

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