PUT
/
api
/
models
/
{modelId}
/
interfaces
/
{interfaceId}
curl --request PUT \
  --url https://app.dalus.io/api/models/{modelId}/interfaces/{interfaceId} \
  --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>",
    "connections": [
      {
        "id": "<string>",
        "name": "<string>",
        "type": "Matter",
        "direction": "in",
        "subType": "Fixed",
        "magnitude": "<string>",
        "unitName": "<string>",
        "prefix": "quetta",
        "colorGroup": "<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

interfaceId
string
required

ID of the interface

Body

application/json
sourceId
string

ID of the source part

targetId
string

ID of the target part

type
string

Type of interface

name
string

Name of the interface

description
string

Description of the interface

metadata
object

Additional metadata for the interface

Response

200
application/json
Interface updated successfully

An interface between parts in the model consisting of connections

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