Skip to content
SoulFire LogoSoulFire

Set container text

POST
/v1/instances/{instance_id}/bots/{bot_id}/container/text-inputs/{field_id}:set

Sets text in a container's text input field. Currently only supports anvil item renaming (field_id: "item_name"). 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 setting the text.

Formatuuid
field_id*string

Which field to set the text for. Currently supported: "item_name" (anvil rename)

Request Body

application/json
  1. body

Request to set text in a container text input field. Currently only supports anvil item renaming.

text*string

The text value to set. For anvil: max 50 characters for the item name.

Response Body

Response for container text input action.

application/json
  1. response

Response for container text input action.

success*boolean

Whether the text was successfully set.

error?|

Error message if success is false. Possible errors: "Unsupported container or field ID: /<field_id>"

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/text-inputs/string:set' \
  -H 'Content-Type: application/json' \
  -d '{
  "text": "string"
}'
Example Response
{
  "success": true,
  "error": "string"
}

Was this page helpful?