Update account
Updates a connected social account's display name or username override. For X/Twitter accounts on usage-based billing, also accepts an `xCapabilities` object to toggle background API operations that incur X API pass-through costs. Both fields are opt-in (default `false`) — when off, no analytics syncs or DM polling are performed for that account, and no API call is metered for those operations. Publishing and deleting posts are always available regardless of these toggles. Setting `xCapabilities` on a non-X account returns 400.
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
X/Twitter only. Per-account opt-in toggles for background API operations that incur X API pass-through costs. Each call is billed via Metronome at the X tier rate. Either field can be sent independently; omitted fields are unchanged.
Response Body
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.accounts.updateAccount({ path: { accountId: 'account_abc123', }, body: { username: 'Example', displayName: 'Example', xCapabilities: { analytics: false, inbox: false, }, },});console.log(data);{
"message": "Account updated successfully",
"username": "@acmecorp",
"displayName": "Acme Corporation Official",
"xCapabilities": {
"analytics": true,
"inbox": false
}
}{
"error": "Unauthorized"
}{
"error": "Not found"
}