Use item
Это руководство доступно только на английском.
Полезна ли эта страница?
Это руководство доступно только на английском.
Полезна ли эта страница?
Uses the item in the specified hand (eat, drink, throw, draw bow, etc.).
AuthorizationBearer <JWT>Preferred API authentication. Use a JWT with the api audience.
instance_id*stringuuidbot_id*stringuuidapplication/jsonhand*stringWhich hand's item to use (e.g. eat food, draw a bow, throw a splash potion).
"HAND_UNSPECIFIED""HAND_MAIN""HAND_OFF"Successful response.
application/jsonresult*curl -X POST 'http://127.0.0.1:38765/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/bots/497f6eca-6276-4993-bfeb-53cbbbba6f08/actions/use-item' \ -H 'Content-Type: application/json' \ -d '{ "hand": "HAND_UNSPECIFIED"}'{ "result": { "actionId": "4a2794ff-94cb-4bac-8d36-d5fb36c563a0", "status": "BOT_ACTION_STATUS_UNSPECIFIED", "error": "string" }}curl -X POST 'http://127.0.0.1:38765/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/bots/497f6eca-6276-4993-bfeb-53cbbbba6f08/actions/use-item' \
-H 'Content-Type: application/json' \
-d '{
"hand": "HAND_UNSPECIFIED"
}'{
"result": {
"actionId": "4a2794ff-94cb-4bac-8d36-d5fb36c563a0",
"status": "BOT_ACTION_STATUS_UNSPECIFIED",
"error": "string"
}
}