Replace the sites a map browser key may be used from

Replaces the whole allowedOrigins list of a map browser key. The list needs at least one site.

put/v1/keys/{keyId}/origins

Request

  • Base URL: https://api.offendersearch.app
  • URL: https://api.offendersearch.app/v1/keys/{keyId}/origins
  • Auth: HTTP bearer

Path parameters

keyIdstring required

Request body

allowedOriginsstring[] required

Each entry is a scheme and host: https://example.com. https://*.example.com matches subdomains. http:// is for localhost only.

Example request

{
  "allowedOrigins": [
    "https://example.com",
    "https://*.example.com"
  ]
}

Response

The key with its new list.

idstring
namestring
maskedKeystring

Prefix + ellipsis; the full secret is never re-shown.

createdAtstring date-time
lastUsedAtstring date-time nullable
status'active' | 'revoked'
kind'secret' | 'map_publishable'

secret for an ordinary key; map_publishable for a map browser key.

allowedOriginsstring[]

The sites a map browser key may be used from. Empty for a secret key.

Changes

No recorded changes to this operation across all 1 revision of this API.