POST
/
api
/
models
/
{modelId}
/
parts
curl --request POST \
  --url http://localhost:3000/api/models/{modelId}/parts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "type": "<string>",
  "name": "<string>",
  "description": "<string>",
  "metadata": {}
}'
{
  "label": "<string>",
  "requirements": [
    "<string>"
  ],
  "documents": [
    {
      "id": "<string>",
      "name": "<string>",
      "url": "<string>",
      "type": "pdf"
    }
  ],
  "attributes": [
    {
      "id": "<string>",
      "name": "<string>",
      "expression": "<string>",
      "value": 123,
      "unitName": "<string>",
      "prefix": "<string>",
      "lastUpdated": 123,
      "constraints": [
        "<string>"
      ],
      "isLeftAligned": true
    }
  ],
  "notes": "<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

Body

application/json

Response

201
application/json
Part created successfully

A part in the model representing a physical or logical component