PUT
/
api-keys
/
{id}
TypeScript
import Nuntly from '@nuntly/sdk';

const client = new Nuntly({
  apiKey: 'My API Key',
});

const apiKey = await client.apiKeys.update('ak_pdGukGd4BTmHj8dscBDE5Mc9');

console.log(apiKey.id);
{
  "data": {
    "id": "apk_01jnx372zj49s3zqnn7ew8hzpk",
    "org_id": "org_01jh6jk82zjq9deye73h0mzcaq",
    "kind": "api-key"
  }
}

Authorizations

Authorization
string
header
required

Bearer HTTP authentication. Allowed headers Authorization: Bearer <API_KEY>

Path Parameters

id
string
required

The api-key id

Body

application/json

Response

200
application/json

A successful response

The response is of type object.