Xsolla-logo

Create age restriction for countryServer-side

post/projects/{project_id}/age_rating

Creates or updates existing age restriction for a selected country in a project.

SecurityServer
Request
path Parameters
project_id
required
string <uuid>

Login project ID from Publisher Account.

Request Body schema: application/json
age
required
integer [ 1 .. 99 ]
country_code
required
string^[a-zA-Z]{2}$

Country code in the ISO 3166-1 alpha-2 format. Use XX to update default restrictions for all countries.

rating_name
string <= 255 characters
Responses
200

OK

403

Access denied

422

Unprocessable entity

500

Internal server error

Request samples
application/json
{
  • "age": 1,
  • "country_code": "string",
  • "rating_name": "string"
}