Component Instances
Work Orders
Processes
Storage
Properties
Fields
Part Numbers
Components
Create New Component
Create new Component
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
API Key or Token formatted as Bearer <YOUR_KEY_OR_TOKEN>
Body
application/json
Component data
The body is of type object
.
Response
200
application/json
OK
Component Data
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"
]
}
Assistant
Responses are generated using AI and may contain mistakes.