Skip to main content
PATCH
Update an API key

Authorizations

X-API-Key
string
header
required

Organization API key. Format: "hp_live_{key}". Organization admins manage the key in the dashboard.

Path Parameters

keyId
string
required

API key ID (from the list endpoint)

Body

application/json
name
string

New label for the key

Required string length: 1 - 100
Example:

"Production backend"

allowedIps
string[]

Replaces the key's IP allowlist. Send [] to allow any address again. Up to 50 IPv4/IPv6 addresses or CIDR blocks.

Maximum array length: 50
Maximum string length: 64
Example:

Response

API key updated

success
boolean
Example:

true

message
string
Example:

"API key updated. The change applies to every request within 30 seconds."

data
object
Example: