Xsolla-logo

创建区域

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

创建区域。

可使用区域来管理区域限制。

SecuritybasicAuth
Request
path Parameters
project_id
required
integer

项目ID。

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"}

区域名称。应该包含键/值对,其中键是"^[a-z]{2}-[A-Z]{2}$"格式的区域位置,值是字符串。

property name*
additional property
string
Responses
201

区域已成功创建。

401

基本认证未通过或错误。确保您使用了基本认证或正确的凭据。

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