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
sourceId
string

ID of the source state

targetId
string

ID of the target state

type
string

Type of transition

name
string

Name of the transition

description
string

Description of the transition

metadata
object

Additional metadata for the transition

Response

200
application/json
Transition updated successfully

A transition between states in the model

id
string
required

The id of the edge

type
string
required

The type of the edge

source
string
required

The source node id

target
string
required

The target node id

data
object
required

The data associated with the edge