Xsolla-logo

Manage age restrictions for countriesServer-side

post/projects/{project_id}/age_rating/batch

Updates, deletes, or creates age restrictions for all countries in a project. You may set default restrictions for all countries and set country-specific restrictions, if any.

Notice
Each new call overrides previous settings.

SecurityServer
Request
path Parameters
project_id
required
string <uuid>

Login project ID from Publisher Account.

Request Body schema: application/json
Array (<= 100 items)
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

400

Bad Request

401

Unauthorized

403

Forbidden

422

Unprocessable Entity

429

Too Many Requests

500

Internal server error

Request samples
application/json
[
  • {
    }
]
Response samples
{
  • "error": {
    }
}