New owner for resources previously owned by the deleted access token. This argument specifies the new owner type.
New owner for resources previously owned by the deleted access token. This argument specifies the new owner ID.
import { buildClient } from '@datocms/cma-client-node';async function run() { const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' }); const accessTokenId = '312'; const accessToken = await client.accessTokens.destroy(accessTokenId); console.log(accessToken);}run();