Skip to main content
PUT
Rename an API key, or switch it off or on

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

The account the key belongs to

keyId
string
required

The keyId of the key, as the list shows it

Body

application/json

At least one of the two is required

name
string

A new name. It cannot be one that another key of the account already has

Required string length: 1 - 100
isActive
boolean

false switches the key off, true switches it on again. A key that is switched off stops working within a minute at the latest, and at once on the server that took the request

Response

The key after the change

success
boolean
required

Always true on a success.

Example:

true

data
object
required

An API key of an account, as it is listed. It never carries the secret: that is shown once, in the answer to the request that made the key, and cannot be read again.

Example:
meta
object

Extra information about the answer: where a page sits in a list, the cursor of the next page, or warnings about a call that succeeded with a caveat.