curl --request POST \
--url http:localhost:3000/v2/qualityControl/ \
--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>"
},
"rating": 4.5,
"comment": "<string>",
"objectId": "<string>",
"objectManagerId": "<string>",
"verified": false,
"roomChecks": [
{
"roomId": "<string>",
"levelId": "<string>",
"comment": "<string>",
"serviceChecks": [
{
"serviceTypeId": "<string>",
"evaluation": 123,
"evaluationType": "<string>",
"rated": true
}
],
"controlImages": [
{
"imageURL": "<string>",
"comment": "<string>",
"label": "<string>"
}
]
}
],
"images": [
"<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>"
},
"rating": 4.5,
"comment": "<string>",
"objectId": "<string>",
"objectManagerId": "<string>",
"verified": false,
"roomChecks": [
{
"roomId": "<string>",
"levelId": "<string>",
"comment": "<string>",
"serviceChecks": [
{
"serviceTypeId": "<string>",
"evaluation": 123,
"evaluationType": "<string>",
"rated": true
}
],
"controlImages": [
{
"imageURL": "<string>",
"comment": "<string>",
"label": "<string>"
}
]
}
],
"images": [
"<string>"
]
}
Create a new quality control entry. This automatically updates object and room ratings based on the assessment and sends notifications to relevant users.
curl --request POST \
--url http:localhost:3000/v2/qualityControl/ \
--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>"
},
"rating": 4.5,
"comment": "<string>",
"objectId": "<string>",
"objectManagerId": "<string>",
"verified": false,
"roomChecks": [
{
"roomId": "<string>",
"levelId": "<string>",
"comment": "<string>",
"serviceChecks": [
{
"serviceTypeId": "<string>",
"evaluation": 123,
"evaluationType": "<string>",
"rated": true
}
],
"controlImages": [
{
"imageURL": "<string>",
"comment": "<string>",
"label": "<string>"
}
]
}
],
"images": [
"<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>"
},
"rating": 4.5,
"comment": "<string>",
"objectId": "<string>",
"objectManagerId": "<string>",
"verified": false,
"roomChecks": [
{
"roomId": "<string>",
"levelId": "<string>",
"comment": "<string>",
"serviceChecks": [
{
"serviceTypeId": "<string>",
"evaluation": 123,
"evaluationType": "<string>",
"rated": true
}
],
"controlImages": [
{
"imageURL": "<string>",
"comment": "<string>",
"label": "<string>"
}
]
}
],
"images": [
"<string>"
]
}
Quality control assessment data
Quality control assessment for objects and rooms including ratings, comments, and detailed room checks Base class for all entities in the system, providing common properties and methods.
Quality control entry created successfully
Quality control assessment for objects and rooms including ratings, comments, and detailed room checks Base class for all entities in the system, providing common properties and methods.
Was this page helpful?