Skip to navigation

✨ Execute manual state transition

Authentication

AuthorizationToken

The token (or API key) must be passed as a request header. You can find your user token on the User Account page in Label Studio. Example:

curl https://label-studio-host/api/projects -H “Authorization: Token [your-token]”

Path parameters

entity_idintegerRequired
entity_namestringRequired

Request

This endpoint expects an object.
transition_namestringRequired>=1 character
transition_datamap from strings to any or nullOptional

Response

new_statestring or nullRead-only
state_recordobject or null

Serializer for FSM state models.

Uses Serializer instead of ModelSerializer because BaseState is abstract. Works with any concrete state model that inherits from BaseState.

successbooleanRead-only