Skip to content

Take an inventory and remove parts from an existing part

POST
/parts/{id}/remove
curl --request POST \
--url https://api.waku-robotics.com/v1/parts/example/remove \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "executed_at": "example", "location_id": "example", "note": "example", "package_number": "example", "quantity": 1 }'

Take an inventory and remove parts from an existing part

id
required
string

Part ID

Inventory

Media typeapplication/json
object
executed_at

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

string
location_id
required

The ID of the location in which the items should be added or from which the items should be removed

string
note

An optional note

string
package_number

An optional package number

string
quantity
required

How many items of the given parts should be added or removed

integer

Example generated

{
"executed_at": "example",
"location_id": "example",
"note": "example",
"package_number": "example",
"quantity": 1
}

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"
}