---
title: "Set the default team for a user"
method: PUT
path: "/api/v1/users/{userId}/default-team"
tags: ["Users"]
---

# Set the default team for a user

`PUT /api/v1/users/{userId}/default-team`

Assigns an existing private team — owned by the operator (or any of its sub-operators) and not currently assigned as another user's default — as this user's default team. Required scope: `users:write` </br>Organization authorization: `supported`

**Availability:** Gated behind the `partner_api_set_default_team` feature flag — must be enabled per operator. Contact your Monta Business Partner to request access.

## Path parameters

- `userId` integer, required

## Request body

- SetDefaultTeam
  - `teamId` integer, required — Id of an existing private team owned by the operator (or one of its sub-operators) to assign as the user's default team

## Response `200`

User with default team assigned

- User
  - `id` integer, required — Id of the user
  - `firstName` string, nullable — First name of the user
  - `lastName` string, nullable — Last name of the user
  - `email` string, nullable — Email of the user
  - `legalEmail` string, nullable — Legal email of the user (certified e-mail)
  - `phone` string, nullable — Phone number of the user
  - `profileImageUrl` string, nullable — URL of the profile image
  - `address` Address
    - `address1` string, required — First line of address
    - `address2` string, nullable — Second line of address
    - `address3` string, nullable — Third line of address
    - `zip` string, required — Zip-code
    - `city` string, required — City (readable)
    - `province` string, nullable — Province
    - `country` string, nullable — Country (readable)
    - `countryAreaId` integer, nullable — Country area id
  - `language` string, nullable — Preferred language of the user
  - `termsReadAt` string, date-time, nullable — Timestamp when the user read the terms
  - `taxIdentificationNumber` string, nullable — Personal tax number if set for the user
  - `vatNumber` string, nullable — VAT number which is the company tax id
  - `recipientCode` string, nullable — The recipient code used for e-invoicing
  - `createdAt` string, date-time, nullable — Timestamp when the user was created
  - `updatedAt` string, date-time, nullable — Timestamp when the user was last updated
  - `deletedAt` string, date-time, nullable — Timestamp when the user was deleted
  - `emailVerifiedAt` string, date-time, nullable — Timestamp when the email was verified
  - `phoneVerifiedAt` string, date-time, nullable — Timestamp when the phone was verified
  - `marketingEmailsAcceptedAt` string, date-time, nullable — Timestamp when the user accepted the marketing emails
  - `defaultTeamId` integer, nullable — ID of the default team for the user
  - `isGuest` boolean, nullable — Indicates whether this user is a guest (ad-hoc) user who has not yet completed registration
  - `nationalId` string, nullable — National identification number. Returned only when configured per operator

## Other responses

- `400` — Team is not private, is deleted, is already the default team for another user, or `teamId` is missing/non-positive
- `401` — Consumer with provided credentials was not found
- `403` — Caller has no access to the team's operator, or the feature flag is not enabled for this operator
- `404` — User or team not found

---

[API](https://skmtc.net/monta/apis/monta-partner-api.md) · [All operations](https://skmtc.net/monta/apis/monta-partner-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/monta/monta-partner-api/revisions/517e18f11015/schema)
