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": {
"equipmentTypeId": "<string>",
"objectId": "<string>",
"_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>",
"serialNumber": "<string>",
"inventoryNumber": 123,
"lastMaintenanceDate": "2023-11-07T05:31:56Z",
"purchaseDate": "2023-11-07T05:31:56Z",
"tags": [
"<string>"
],
"chatName": "<string>"
}
}
'{
"modifiedCount": 123
}Update multiple equipment items at once
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": {
"equipmentTypeId": "<string>",
"objectId": "<string>",
"_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>",
"serialNumber": "<string>",
"inventoryNumber": 123,
"lastMaintenanceDate": "2023-11-07T05:31:56Z",
"purchaseDate": "2023-11-07T05:31:56Z",
"tags": [
"<string>"
],
"chatName": "<string>"
}
}
'{
"modifiedCount": 123
}Batch update data
Equipment items updated successfully
Number of equipment items modified
Was this page helpful?