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>" ], "direction": "out", "notes": "<string>", "guards": [ { "limit": 123, "operator": ">", "variableId": "<string>", "id": "<string>", "type": "attribute" } ] } }
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
ID of the source state
ID of the target state
Type of transition
Name of the transition
Description of the transition
Additional metadata for the transition
Transition updated successfully
A transition between states in the model
The id of the edge
The type of the edge
The source node id
The target node id
The data associated with the edge
Show child attributes
out
in
both
>
<
>=
<=
=
attribute
connection