---
title: "Add a location to a user’s MLP level"
method: PUT
path: "/proposals/AssignLocationToMlpUser"
tags: ["Proposals"]
---

# Add a location to a user’s MLP level

`PUT /proposals/AssignLocationToMlpUser`

## Request

- Base URL: `https://sb2api.servicechannel.com/v3`
- URL: `https://sb2api.servicechannel.com/v3/proposals/AssignLocationToMlpUser`
- 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/proposals/AssignLocationToMlpUser/put.ts> (a function with typed inputs; its response is checked against the schema)

Assigns a particular location to the specified user along with the MLP level.
            <br />You can remove a location from the user and MLP level by using the [PUT /proposals/RemoveLocationFromMlpUser](https://developer.servicechannel.com/swagger/index.html#/Proposals/PUTv3_proposals_RemoveLocationFromMlpUser%3FuserName%3D%7BuserName%7D%26location%3D%7Blocation%7D) method.

## Query parameters

- `userName` string, required
- `location` string, required

## Response `200`

The location is assigned to the specified user and MLP level.

## Other responses

- `400`: The request is not accepted due to bad syntax, missing parameters, insufficient data, etc. <br/>Error codes: 400 — Bad Request 503 — Request is empty or null 3401 — The location doesn't exist
- `401`: The request is not authorized. <br/>Error codes: 504 — API call rejected by security permissions

---

[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)
