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
}
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": {
"_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
}
Batch update data
The body is of type object
.
Equipment items updated successfully
The response is of type object
.
Was this page helpful?