Give items/blocks to the specified player
You can use the item/blocks endpoints to get the list of available items/blocks.
If the user don't have enough space in his inventory, the remaining items/blocks will fall on the ground.
POST
/api/v1/players/[Player name | Player UUID]/inventory/add
Application/Json
| Key | Value | Type | Required |
|---|---|---|---|
| Authorization | Basic [key] | string | For Basic authentication mode only |
| Authorization | [key] | string | For Key-Basic and Key-Advanced authentication modes only |
No parameters
{
"item": string, // Item or block to give to the player
"quantity": int // The quantity of items/blocks to give, must be between 0 and 2304 (full inventory)
}| Authentication type | Key type | Allowed |
|---|---|---|
| Open | ![]() | |
| Basic | ![]() | |
| Key-Basic | ![]() | |
| Key-Advanced | Public key | ![]() |
| Key-Advanced | Protected key | ![]() |
| Key-Advanced | Admin key | ![]() |
{
"success": bool,
"code": int,
"message": string
}{
"success": bool,
"code": int,
"message": string
}| HTTP Code | Type |
|---|---|
| 202 | Accepted |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |