Edit a publishable key
Its name, its websites, whether it takes only signed users. A revoked key cannot be edited.
Sessions: admins.
Needs the experts:write scope. A key without it gets 403 insufficient_scope. Routes not in this reference cannot be called with a key at all (403 not_available_to_api_keys).
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
id
The expert id.
keyId
The key’s id (not the key itself).
Request
This endpoint expects an object.
name
allowedOrigins
The websites the key works on. An empty list refuses every browser.
requireSignedUser
Response
OK
id
A UUID.
agentId
A UUID.
key
rydhm_pk_live_ followed by 24 letters and digits.
name
allowedOrigins
requireSignedUser
Only signed users (user.id with user.hash) may use it.
createdAt
revokedAt
lastUsedAt
Errors
401
Unauthorized Error
403
Forbidden Error
429
Too Many Requests Error