Xsolla-logo

Create regionServer-sideAdmin

post/v2/project/{project_id}/admin/region

Creates 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
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
201

Region was successfully created.

401

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

Request samples
application/json
{
  • "name": {
    },
  • "countries": [
    ]
}
Response samples
application/json
{
  • "id": 42
}