Zum Inhalt springen
SoulFire LogoSoulFire

Close container

Diese Anleitung gibt es nur auf Englisch.

POST
/v1/instances/{instance_id}/bots/{bot_id}/container:close

Closes the currently open container (chest, crafting table, etc.). Returns to the player inventory view. The bot must be online with a valid player.

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 close container for.

Formatuuid

Response Body

Response for container close action.

application/json
  1. response

Response for container close action.

success*boolean

Whether the close action was successful.

Example Request
curl -X POST 'http://127.0.0.1:38765/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/bots/497f6eca-6276-4993-bfeb-53cbbbba6f08/container:close'
Example Response
{
  "success": true
}

War diese Seite hilfreich?