PUT
/
api
/
models
/
{modelId}
/
ports
/
{portId}
curl --request PUT \
  --url http://localhost:3000/api/models/{modelId}/ports/{portId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "label": "<string>",
  "partId": "<string>",
  "constraints": [
    "<string>"
  ]
}'
{
  "label": "<string>",
  "constraints": [
    "<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

portId
string
required

ID of the port

Body

application/json
label
string

The label of the port

partId
string

The ID of the part this port belongs to

constraints
string[]

The constraints on the port

Response

200
application/json
Port updated successfully

A port belonging to a part in the model

label
string
required

The label of the part

constraints
string[]
required

The constraints on the port