SoulFire LogoSoulFire

Set container text

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.

POST
/v1/instances/p0/bots/p1/container/text-inputs/p2: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

AuthorizationBearer <token>

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

In: header

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

TypeScript Definitions

Use the request body type in TypeScript.

text*string

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

Response Body

application/json

application/json

application/json

application/json

curl -X POST "http://127.0.0.1:38765/v1/instances/p0/bots/p1/container/text-inputs/p2:set" \  -H "Content-Type: application/json" \  -d '{    "text": "string"  }'
{
  "success": true,
  "error": "string"
}
{
  "code": 0,
  "grpc-code": "string",
  "message": "string",
  "stack-trace": "string",
  "details": [
    {}
  ]
}
{
  "code": 0,
  "grpc-code": "string",
  "message": "string",
  "stack-trace": "string",
  "details": [
    {}
  ]
}
{
  "code": 0,
  "grpc-code": "string",
  "message": "string",
  "stack-trace": "string",
  "details": [
    {}
  ]
}

How is this page?