Edit an object (PATCH)


Add/remove materials, increase/decrease the number of materials from an object

PATCH /v4/sites/{siteId}/objects/{objectId}
Parameters
siteId
uuid required
-
objectId
uuid required
-
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
    }
  }
}

Response 204