Skip to navigation

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

idstringRequired
The expert id.
keyIdstringRequired

The key’s id (not the key itself).

Request

This endpoint expects an object.
namestringOptional<=80 characters
allowedOriginslist of stringsOptional
The websites the key works on. An empty list refuses every browser.
requireSignedUserbooleanOptional

Response

OK
idstring
A UUID.
agentIdstring
A UUID.
keystring

rydhm_pk_live_ followed by 24 letters and digits.

namestring
allowedOriginslist of strings
requireSignedUserboolean

Only signed users (user.id with user.hash) may use it.

createdAtdatetime
revokedAtdatetime or nullOptional
lastUsedAtdatetime or nullOptional

Errors

401
Unauthorized Error
403
Forbidden Error
429
Too Many Requests Error