Members
Set brand access
/v1/workspaces/{workspaceId}/members/{userId}/brand-accessLimit a member to some brands, or give every brand back. For them and their API keys, other brands don't exist: they aren't listed and answer 404. Brands they create join their list. See Brand access. The owner always sees every brand, so limiting the owner fails with 409 owner_has_every_brand. Only the workspace owner can do this, and only from the app. See Owner-only and app-only.
Path parameters
workspaceIdstringrequiredThe workspace's id. An API key can only use its own workspace.
userIdstringrequiredThe member.
Body
JSON, with Content-Type: application/json.
brandIdsarray of string or nullrequiredThe brands this member may see, at least one. Send null to give every brand back, which always works. Limiting needs per-brand access, which is on the Agencies plan; other plans get
403 plan_feature.
Response
userIdstringrequiredemailstringrequirednamestring or nullrequiredroleenumrequiredOne of
"owner","member"brandIdsarray of string or nullrequiredThe only brands this member sees, or null when they see every brand. Set it with
PATCH /v1/workspaces/{workspaceId}/members/{userId}/brand-access. If you are limited to some brands yourself, this lists only brands you also see.otherBrandsbooleanrequiredTrue when every brand this member is limited to is one you don't see.
keysGoOnRemovalbooleanrequiredTrue when the member is limited to some brands. Removing such a member also revokes their API keys.
Errors answer with a status and the error shape.