Take an inventory and add parts to an existing part
POST
/parts/{id}/add
const url = 'https://api.waku-robotics.com/v1/parts/example/add';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"executed_at":"example","location_id":"example","note":"example","package_number":"example","quantity":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.waku-robotics.com/v1/parts/example/add \ --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 add parts to an existing part
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Part ID
Request Body
Section titled “Request Body”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}Responses
Section titled “Responses”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"}default
Section titled “default”Media typeapplication/json
object
code
integer
message
string
Example generated
{ "code": 1, "message": "example"}
