Edit an object (PATCH)
Add/remove materials, increase/decrease the number of materials from an object
Parameters | ||
---|---|---|
siteId | - | |
objectId | - |
Request #1
Headers | |
---|---|
Content-Type | application/json |
Accept | application/json |
Authorization | Bearer `Your Access Token` |
{
"materials": [
{
"id": "ede4ba76-292e-46c3-9315-a7acc2a29992",
"amount": 1
}
]
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"materials": {
"type": "array",
"minItems": 1,
"items": [
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"amount": {
"type": "number"
}
},
"required": [
"id",
"amount"
],
"additionalProperties": false
}
],
"additionalItems": false
}
}
}