Create a new device model
POST
/device-models
const url = 'https://api.waku-robotics.com/v1/device-models';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"manufacturer_id":"example","name":"example"}'};
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/device-models \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "manufacturer_id": "example", "name": "example" }'Create a new device model
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”Device-model
Media typeapplication/json
object
manufacturer_id
required
The ID of the manufacturer of the device model
string
name
required
The name of the device model
string
Example generated
{ "manufacturer_id": "example", "name": "example"}Responses
Section titled “Responses”OK
Media typeapplication/json
object
created_at
required
string
id
required
string
manufacturer
required
string
manufacturer_id
required
string
name
required
string
slug
required
string
updated_at
required
string
Example generated
{ "created_at": "example", "id": "example", "manufacturer": "example", "manufacturer_id": "example", "name": "example", "slug": "example", "updated_at": "example"}default
Section titled “default”Media typeapplication/json
object
code
integer
message
string
Example generated
{ "code": 1, "message": "example"}
