Zernio
Zernio
API Reference

Account Groups

List groupsGETCreate groupPOSTUpdate groupPUTDelete groupDELETE
Dashboard
llms.txtOpenAPI
OverviewPlatformsAPI ReferenceResources
Account Groups

Update group

Updates the name or account list of an existing group. You can rename the group, change its accounts, or both.


PUT
/v1/account-groups/{groupId}

Authorization

bearerAuth
AuthorizationBearer <token>

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

In: header

Path Parameters

groupId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

{  "message": "Account group updated successfully",  "group": {    "_id": "6507a1b2c3d4e5f6a7b8c9d0",    "name": "Updated Marketing Accounts",    "accountIds": [      "64e1f0a9e2b5af0012ab34cd",      "64e1f0a9e2b5af0012ab34ce",      "64e1f0a9e2b5af0012ab34cf"    ]  }}
Was this page helpful?

Create group

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.

Delete group

Permanently deletes an account group. The accounts themselves are not affected.

name?string
accountIds?array<string>