Reference / Governance

update a named location.

PATCH /v1/named-locations/{id}
Secret API key operationId: update_named_location

Authorization

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

Path parameters

  • id string<uuid> required

    Named location id

Request body · required

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

    `country` | `ip`

  • name string required
  • trusted boolean

Responses

200 Updated
404 Not found

Request

curl -X PATCH "http://localhost:8080/v1/named-locations/018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f" \
  -H "Content-Type: application/json" \
  -d '{
  "blocked": false,
  "entries": [
    "string"
  ],
  "kind": "string",
  "name": "string",
  "trusted": false
}'

Try it

live request
PATCH http://localhost:8080/v1/named-locations/018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f

Path parameters

Request body

application/json