PATCH
/
account
TypeScript
import Nuntly from '@nuntly/sdk';

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

const account = await client.account.update({ display_name: 'Ray Tomlinson' });

console.log(account.id);
{
  "data": {
    "id": "user_01jh6jk831bzen14edngw38we9",
    "kind": "user"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200
application/json

A successful response

The response is of type object.