Update Items Exp
Update Items Exp allows for the progression of items within the game, players can level up their items and enhance existing ones.
Request
PUT /v1/inventory/items/exp/upgrade?isUpdateLevel=false HTTP/1.1
Host: invent-dev.api.mimiland.io
mm-client-id: mml
Authorization: bearer v4.public.eyJhZC*****5xTtpdbQI
mm-user-id: 64edd6c4f8969bbd526d3b8b
Content-Type: application/json
Content-Length: 80
[
{
"id": "651101b560b3e4d4a50b5622",
"exp":2
}
]const myHeaders = new Headers();
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",
"exp": 2
}
]);
const requestOptions = {
method: "PUT",
headers: myHeaders,
body: raw,
redirect: "follow"
};
fetch("https://invent-dev.api.mimiland.io/v1/inventory/items/exp/upgrade?isUpdateLevel=false", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));Parameter
Key
Type
Description
id *required
String
id of the items to delete
exp *required
Int
Exp of the item want to update
isUpdateLevel Optional
Boolean
Update level corresponding to exp
Last updated