PATCH
/
equipment
/
many
Batch update equipment
curl --request PATCH \
  --url http:localhost:3000/v2/equipment/many \
  --header 'Content-Type: application/json' \
  --header 'x-API-Key: <api-key>' \
  --data '{
  "ids": [
    "<string>"
  ],
  "data": {
    "_id": "<string>",
    "number": 123,
    "companyId": "<string>",
    "status": {
      "status": 123,
      "createdAt": "2023-11-07T05:31:56Z",
      "createdBy": "<string>",
      "lastModifiedAt": "2023-11-07T05:31:56Z",
      "lastModifiedBy": "<string>"
    },
    "chatId": "<string>",
    "equipmentTypeId": "<string>",
    "serialNumber": "<string>",
    "objectId": "<string>",
    "inventoryNumber": 123,
    "lastMaintenanceDate": "2023-11-07T05:31:56Z",
    "purchaseDate": "2023-11-07T05:31:56Z",
    "tags": [
      "<string>"
    ],
    "chatName": "<string>"
  }
}'
{
  "modifiedCount": 123
}

Authorizations

x-API-Key
string
header
required

Body

application/json

Batch update data

The body is of type object.

Response

200
application/json

Equipment items updated successfully

The response is of type object.