Set Geo Blocking Policy
This API is used to set geo blocking policy under this domain.
Request Definition
- API URL:
https://lsdn-api.swiftfederation.com/v1.0/domains/{domainId}/geo_blocking_policy
- Request Method:
PUT
- Request Header:
Refer to HTTP Request Headers
- Request Body:
Request Body Data Format: JSON
Field | Type | Description |
---|---|---|
type | String | BLACK_LIST, WHITE_LIST |
countryCodes | List\ |
Collection of ISO 3166-1 ALPHA-2 country codes. |
- Request Body Example
{
"type": "BLACK_LIST",
"countryCodes": [
"CN",
"US"
]
}
Response Definition
- Response Header
Refer to HTTP Response Headers
- Response Body
No response body for this API.