Skip to content
SoulFire LogoSoulFire

Select hotbar slot

POST
/v1/instances/{instance_id}/bots/{bot_id}/hotbar/{slot}:select

Changes the selected hotbar slot. Valid slot range: 0-8 (corresponding to slots 1-9 in the UI). The action is queued and executed on the next game tick.

Authorization

headerAuthorizationBearer <JWT>

Preferred API authentication. Use a JWT with the api audience.

Path Parameters

instance_id*string

The UUID of the SoulFire instance containing the bot.

Formatuuid
bot_id*string

The profile UUID of the bot to change hotbar selection for.

Formatuuid
slot*integer

Hotbar slot index to select. Range: 0-8 (corresponding to slots 1-9 in the UI).

Formatint32

Response Body

Response for hotbar slot selection.

application/json
  1. response

Response for hotbar slot selection.

success*boolean

Whether the hotbar slot was successfully changed.

error?|

Error message if success is false. Possible errors: "Hotbar slot must be between 0 and 8, got: ", "Player is not available"

Example Request
curl -X POST 'http://127.0.0.1:38765/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/bots/497f6eca-6276-4993-bfeb-53cbbbba6f08/hotbar/0:select'
Example Response
{
  "success": true,
  "error": "string"
}

Was this page helpful?