Classic APIs
ClassicGroupsApi
authenticatedUserSetPrimaryGroup

authenticatedUserSetPrimaryGroup

Sets the authenticated user's primary group.

Parameters

NameTypeDescription
groupIdIdentifierThe id of the group to set as the primary group.

Example

const { data: success } = await ClassicGroupsApi.authenticatedUserSetPrimaryGroup({ groupId: 5850082 }); 

Endpoint

POST /v1/user/groups/primary