Reference / Governance

create a named location.

POST /v1/named-locations
Secret API key operationId: create_named_location

Authorization

Server-to-server. Send a secret key as a Bearer token plus the x-application-id header.

Request body · required

  • blocked boolean
  • entries string[]
  • kind string required

    `country` | `ip`

  • name string required
  • trusted boolean

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 request
POST http://localhost:8080/v1/named-locations

Request body

application/json