Skip to content

Create a new part

POST
/parts
curl --request POST \
--url https://api.waku-robotics.com/v1/parts \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "deployment_id": "example", "description": "example", "executed_at": "example", "part_model_id": "example" }'

Create a new part

Part

Media typeapplication/json
object
deployment_id
required

The ID of the deployment in which the case should be created

string
description

An optional description

string
executed_at

An optional timestamp to create parts in the past (defaults to current UTC timestamp)

string
part_model_id
required

The ID of the model of this part

string

Example generated

{
"deployment_id": "example",
"description": "example",
"executed_at": "example",
"part_model_id": "example"
}

OK

Media typeapplication/json
object
created_at
required
string
deployment_id
required
string
description
string
device_id
string
executed_at
required
string
id
required
string
part_category
required
string
part_category_id
required
string
part_model
required
string
part_model_id
required
string
quantity
required
integer
ref
string
updated_at
required
string

Example generated

{
"created_at": "example",
"deployment_id": "example",
"description": "example",
"device_id": "example",
"executed_at": "example",
"id": "example",
"part_category": "example",
"part_category_id": "example",
"part_model": "example",
"part_model_id": "example",
"quantity": 1,
"ref": "example",
"updated_at": "example"
}
Media typeapplication/json
object
code
integer
message
string

Example generated

{
"code": 1,
"message": "example"
}