PUT
/
api
/
models
/
{modelId}
/
transitions
/
{transitionId}
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>"
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

modelId
string
required

ID of the model

transitionId
string
required

ID of the transition

Body

application/json

Response

200
application/json
Transition updated successfully

A transition between states in the model