cURL
curl --request PUT \ --url http://localhost:3000/api/models/{modelId}/transitions/{transitionId} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "sourceId": "<string>", "targetId": "<string>", "type": "<string>", "name": "<string>", "description": "<string>", "metadata": {} }'
{ "id": "<string>", "type": "<string>", "source": "<string>", "target": "<string>", "data": { "label": "<string>", "effects": [ "<string>" ] } }
Updates a specific transition by ID
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
ID of the model
ID of the transition
Transition updated successfully
A transition between states in the model