Set geo filter
POST
https://api.vpsbg.eu/v1/network-protection/{id}/geoThis endpoint is setting countries in the geo filter and the desired policy - allow or deny.
⚠️ All previously added countries and the policy will be set to the new values you provide. If you want to do partial update, use the PATCH request.
Request
Path Params
id
integer
required
Your IP Address identificator.
Body Params application/json
action
string
required
countries
array[string]
required
Example
{
"action": "allow",
"countries": [
"BG"
]
}
Request samples
Responses
Filter set(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
active
boolean
required
action
string
required
Can be "allow" or "deny".
countries
array[string]
required
Example
{
"active": true,
"action": "allow",
"countries": [
"BG"
]
}
Last modified: 2 months ago