# Update Items Level

Request

{% tabs %}
{% tab title="HTTP" %}

```http
PUT /v1/inventory/items/level HTTP/1.1
Host: invent-dev.api.mimiland.io
otp: 842584
mm-client-id: mml
Authorization: bearer v4.public.eyJhZC*****5xTtpdbQI8
mm-user-id: 64edd6c4f8969bbd526d3b8b
Content-Type: application/json
Content-Length: 69

[
  {
    "id": "651101b560b3e4d4a50b5622",
    "level": 2
  }
]
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const myHeaders = new Headers();
myHeaders.append("otp", "842584");
myHeaders.append("mm-client-id", "mml");
myHeaders.append("Authorization", "bearer v4.public.eyJhZC*****5xTtpdbQI");
myHeaders.append("mm-user-id", "64edd6c4f8969bbd526d3b8b");
myHeaders.append("Content-Type", "application/json");

const raw = JSON.stringify([
  {
    "id": "651101b560b3e4d4a50b5622",
    "level": 2
  }
]);

const requestOptions = {
  method: "PUT",
  headers: myHeaders,
  body: raw,
  redirect: "follow"
};

fetch("https://invent-dev.api.mimiland.io/v1/inventory/items/level", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.error(error));
```

{% endtab %}
{% endtabs %}

Parameter

| Key                                                        | Type   | Description                      |
| ---------------------------------------------------------- | ------ | -------------------------------- |
| <p>id<br><mark style="color:red;">\*required</mark></p>    | String | id of the item want to update    |
| <p>level<br><mark style="color:red;">\*required</mark></p> | Int    | Level of the item want to update |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mimiland.com/mimiland-core-services/inventory/api-references/update-items-level.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
