Update a key
Auth: Bearer key with no domain scope.
Name, rate limit and domain scope. Never the secret: a leaked key is revoked and re-minted, not patched. A revoked key can't be edited.
bearerAuthorizationBearer <token>An API key in the Authorization header.
id*stringAn opaque, type-prefixed id.
application/json- body
name?stringNew name for the key.
^[a-zA-Z0-9-]+$1 <= length <= 64domain_ids?array<>Domains this key may send from. Empty means every domain in the organization.
rate_limit?integerRequests a minute this key is allowed, 1-10000.
1 <= value <= 10000The updated key.
application/json- response
id?stringOpaque id, prefixed key_.
name?stringName the key was created with.
mode?stringtest routes every send to the mock provider.
"live""test"secret_prefix?stringLeading characters of the secret, enough to tell two keys apart. Never the secret.
domain_ids?array<string>Domains the key may send from. Empty means every domain in the organization.
rate_limit?integerRequests a minute this key is allowed.
last_used_at?|ISO 8601 timestamp of the last request that authenticated with it, over HTTP or SMTP, written at most once a minute. Null until the key's first request.
revoked_at?|ISO 8601 timestamp, or null while the key works.
created_at?stringISO 8601 timestamp.
curl -X PATCH 'https://pouch.example.com/v1/keys/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "string", "name": "string", "mode": "live", "secret_prefix": "string", "domain_ids": [ "string" ], "rate_limit": 0, "last_used_at": "string", "revoked_at": "string", "created_at": "string"}