OverviewProductsPlatformsAPI ReferenceResources
Pixels & Tracking Tags

Assign a user to a tag

POSThttps://zernio.com/api/v1/accounts/{accountId}/tracking-tags/{tagId}/users

Gives a person in the owning Meta business access to a pixel, or replaces the tasks they already have on it.

Assigning an already assigned user replaces their task set.

Meta: tasks are AA_ANALYZE, ADVERTISE, ANALYZE, EDIT, UPLOAD; userId is the business-scoped id from GET /v1/ads/businesses/users. A pixel on a personal ad account answers 400. Needs business_management like the list.

PlatformsMeta

Authentication

AuthorizationBearer tokenRequired

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

Path parameters

accountIdstringRequired
tagIdstringRequired

Tag id (TrackingTag.id).

Body

application/json

What every request needs

userIdstringRequired
tasksarray of stringsRequired

Responses

Success· the request worked

Errors· the request failed

POST/v1/accounts/{accountId}/tracking-tags/{tagId}/users
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.trackingtags.assignTrackingTagUser({  path: {    accountId: 'account_abc123',    tagId: 'tag_abc123',  },  body: {    userId: 'user_abc123',    tasks: [      'string',    ],  },});console.log(data);
{  "platform": "string",  "userId": "string",  "tasks": [    "string"  ]}
OpenAPI specification
Was this page helpful?