Skip to main content
POST
/
animation
/
state-machine
attach an animation state machine to an entity
curl --request POST \
  --url http://localhost:3917/animation/state-machine \
  --header 'Content-Type: application/json' \
  --data '
{
  "entity_id": 1,
  "initial_state": 1,
  "states": [
    {
      "clip": 1,
      "name": "<string>",
      "looping": true,
      "speed": 123
    }
  ]
}
'
{
  "ok": true,
  "message": "<string>"
}

Body

application/json
entity_id
integer<int32>
required
Required range: x >= 0
initial_state
integer
Required range: x >= 0
states
object[]

Response

200 - application/json

State machine attached; ok is false with a message if the entity is missing.

ok
boolean
required
message
string | null