---
title: "Add a user to an MLI level"
method: POST
path: "/MliConfiguration/Levels/{levelId}/Users/{userId}"
tags: ["MliConfiguration"]
---

# Add a user to an MLI level

`POST /MliConfiguration/Levels/{levelId}/Users/{userId}`

## Request

- Base URL: `https://sb2api.servicechannel.com/v3`
- URL: `https://sb2api.servicechannel.com/v3/MliConfiguration/Levels/{levelId}/Users/{userId}`
- Auth: OAuth 2
  - Authorization code: `https://sb2login.servicechannel.com/oauth/authorize`
  - Token URL: `https://sb2login.servicechannel.com/oauth/token`
- TypeScript: <https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/docs/MliConfiguration/Levels/:levelId/Users/:userId/post.ts> (a function with typed inputs; its response is checked against the schema)

Assigns a user to an existing MLI level. Get users’ IDs by sending the [GET /users](/swagger/ui/index?version=3#/Users/GETv3_users_subscriberId__subscriberId__startIndex__startIndex__maxCount__maxCount_) request.
            <br />You can assign a user to an existing location by using the [POST /MliConfiguration/Levels/{levelId}/Users/{userId}/Locations/{locationId}](/swagger/ui/index?version=3#/MliConfiguration/POSTv3_MliConfiguration_Levels__levelId__Users__userId__Locations__locationId_) method.
            <br />***Note***: Each user can be added to only one MLI level. If a user should be assigned to another MLI level, you first need to [remove this user from the MLI level](/swagger/ui/index?version=3#/MliConfiguration/DELETEv3_mliConfiguration_Levels__levelId__Users__userId_) they currently belong to.

## Path parameters

- `levelId` integer, required
- `userId` integer, required

## Response `200`

Returns the created user ID from table dat_Division_User.

## Other responses

- `400`: The request is not accepted due to bad syntax, missing parameters, insufficient data, etc. <br/> Error codes: 1129 — Err: failed to assign users 1131 — Err: Approval level doesn’t exist 1149 — User has already been assigned to another level 1150 — User does not exist
- `401`: The request is not authorized. <br/> Error codes: 504 — API call rejected by security permissions
- `403`: You are not authorized to request this resource, or the resource is unavailable for some reason. <br/> Error codes: 100 — User has no rights to perform this action

---

[API](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3.md) - [All operations](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/llms.txt) - [OpenAPI document](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/revisions/d490d6596809?raw)
