create a named location.
POST
Secret API key operationId: create_named_location/v1/named-locations Authorization
Server-to-server. Send a secret key as a Bearer token plus the x-application-id header.
Request body · required
blockedbooleanentriesstring[]kindstring required`country` | `ip`
namestring requiredtrustedboolean
Responses
201 Created
422 Invalid
Request
curl -X POST "http://localhost:8080/v1/named-locations" \
-H "Content-Type: application/json" \
-d '{
"blocked": false,
"entries": [
"string"
],
"kind": "string",
"name": "string",
"trusted": false
}'Try it
live requestPOST
http://localhost:8080/v1/named-locations