POST
/
components
curl --request POST \
  --url https://api.serial.io/components \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "component_type": "SN",
  "is_active": true
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "component_type": "SN",
  "is_active": true,
  "created_at": "2023-11-07T05:31:56Z",
  "last_edited_at": "2023-11-07T05:31:56Z",
  "last_edited_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "pn_metadata_dataset_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ]
}

Authorizations

Authorization
string
header
required

API Key or Token formatted as Bearer <YOUR_KEY_OR_TOKEN>

Body

application/json
Component data
name
string
required
component_type
enum<string>
required
Available options:
SN,
LOT
is_active
boolean

Response

200
application/json
OK

Component Data

id
string
name
string
component_type
enum<string>
Available options:
SN,
LOT
is_active
boolean
created_at
string
last_edited_at
string
last_edited_user_id
string
pn_metadata_dataset_ids
string[]