PUT
/
api
/
models
/
{modelId}
/
interfaces
/
{interfaceId}
curl --request PUT \
  --url http://localhost:3000/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"
      }
    ]
  }
}

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

Response

200
application/json
Interface updated successfully

An interface between parts in the model consisting of connections