Xsolla-logo

Region erstellen

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

Erstellt eine Region.

Anhand von Regionen können Sie regionale Beschränkungen verwalten.

SecuritybasicAuth
Request
path Parameters
project_id
required
integer

Projekt-ID. Dieser Parameter wird im Kundenportal neben dem Projektnamen angezeigt.

Example: 44056
Request Body schema: application/json
countries
required
Array of strings
Items Enum: "AU" "US" "MX" "EU" "CS" "CA" "GL" "GI" "BM" "YU" "RE" "FK" "AN" "AX" "MQ" "GP" "JE" "VG" "GG" "YT" "IM" "GF" "AQ" "AS" "AW" "AI" "IO" "VI" "MS" "VU" "SJ" "SH" "BV" "CC" "CK" "EH" "GS" "CX" "TK" "NU" "TF" "NF" "MP" "PR" "BY" "BO" "BS" "NL" "UY" "GB" "IN" "BZ" "AR" "ZA" "EG" "MU" "CI" "GH" "MW" "AO" "ZM" "KE" "GA" "NG" "TZ" "ML" "BJ" "MG" "TD" "BW" "LY" "CV" "RW" "MZ" "GM" "LS" "CG" "UG" "BF" "SL" "SO" "ZW" "CD" "SD" "NE" "CF" "SZ" "TG" "GN" "SN" "MA" "CM" "DZ" "MR" "NA" "DJ" "LR" "SC" "KM" "KY" "IS" "SA" "UA" "GQ" "TN" "JP" "RU" "DE" "FR" "TH" "CN" "MY" "PK" "NZ" "KR" "HK" "SG" "BD" "ID" "PH" "TW" "AF" "VN" "NC" "BN" "IL" "GR" "CH" "SE" "PL" "ME" "CZ" "BE" "IE" "IT" "DK" "IQ" "AE" "CY" "AT" "ES" "TJ" "PT" "TR" "IR" "GE" "AM" "LB" "MD" "BG" "FI" "OM" "LV" "EE" "SK" "BA" "HU" "KW" "AL" "LT" "KZ" "LU" "MK" "RS" "RO" "MT" "BH" "UZ" "AZ" "GU" "FM" "EC" "CO" "PE" "HN" "YE" "HT" "SY" "BR" "VE" "CR" "AG" "PA" "CL" "BB" "DO" "SV" "JM" "MN" "TC" "GT" "TT" "GY" "LK" "SI" "PY" "KP" "HR"
required
object
Default: {"de-DE":"Asien","en-US":"Asia"}

Name der Region. Sollte Schlüssel-Wert-Paare enthalten, wobei der Schlüssel ein Gebietsschema im Format "^[a–z]{2}-[A–Z]{2}$" und der Wert ein String ist.

property name*
additional property
string
Responses
201

Region wurde erfolgreich erstellt.

401

Basisauthentifizierung nicht bestanden oder falsch. Prüfen Sie die Anmeldedaten und vergewissern Sie sich, dass Sie die Basisauthentifizierung verwenden.

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