curl --request POST \
--url http:localhost:3000/v2/equipment/ \
--header 'Content-Type: application/json' \
--header 'x-API-Key: <api-key>' \
--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>"
}'
{
"_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>"
}
Create a new equipment item
curl --request POST \
--url http:localhost:3000/v2/equipment/ \
--header 'Content-Type: application/json' \
--header 'x-API-Key: <api-key>' \
--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>"
}'
{
"_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>"
}
Equipment data
A single item of equipment that belongs to a specific equipment type Base class for all entities that can have a chat associated with them. Base class for all entities in the system, providing common properties and methods.
Equipment created successfully
A single item of equipment that belongs to a specific equipment type Base class for all entities that can have a chat associated with them. Base class for all entities in the system, providing common properties and methods.
Was this page helpful?