---
title: "Sets the authenticated user's primary group"
method: POST
path: "/v1/user/groups/primary"
tags: ["Groups", "User profiles"]
---

# Sets the authenticated user's primary group

`POST /v1/user/groups/primary`

## Request body

- RobloxGroupsApiPrimaryGroupRequest — A request model for setting the authenticated user's primary group.
  - `groupId` integer — The group id.

## Response `200`

OK

- RobloxWebWebAPIApiEmptyResponseModel

## Other responses

- `400` — 1: Group is invalid or does not exist.
- `401` — 0: Authorization has been denied for this request.
- `403` — 0: Token Validation Failed 2: You aren't a member of the group specified.

---

[API](https://skmtc.net/roblox/apis/roblox-api.md) · [All operations](https://skmtc.net/roblox/apis/roblox-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/roblox/roblox-api/versions/e15802062270/schema)
