OverviewProductsPlatformsAPI ReferenceResources
Account Groups

Create group

POSThttps://zernio.com/api/v1/account-groups

Creates a new account group with a name and a list of account IDs. Accounts can belong to different profiles; the caller must have access to every account's profile. Group names must be unique per user.

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Body

application/json

What every request needs

namestringRequired
accountIdsarray of stringsRequired
Optional parameters1 field
profileIdDeprecatedstring

Deprecated. Accepted for backward compatibility but ignored. Groups are no longer scoped to a single profile.

Responses

Success· the request worked

Errors· the request failed

POST/v1/account-groups
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.accountGroups.createAccountGroup({  body: {    name: 'Example',    accountIds: [      'account_abc123',    ],  },});console.log(data);
{  "message": "Account group created successfully",  "group": {    "_id": "6507a1b2c3d4e5f6a7b8c9d0",    "name": "Marketing Accounts",    "accountIds": [      "64e1f0a9e2b5af0012ab34cd",      "64e1f0a9e2b5af0012ab34ce"    ]  }}
OpenAPI specification
Was this page helpful?