Headers
Path Parameters
Hotel (Workspace) ID
Checklist log instance ID
curl --request PUT \
--url https://api.xenia.team/api/v1/task/hotels/{hotelId}/logs/{checklistLogId}/submit \
--header 'workspace-id: <workspace-id>' \
--header 'x-client-key: <api-key>' \
--header 'x-client-secret: <api-key>'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"status": "Submitted",
"progress": {
"count": 123,
"score": 123,
"progress": 123,
"passFailCount": 123,
"completedCount": 123,
"passFailCompletedCount": 123
},
"score": {
"total": 123,
"earned": 123,
"percentage": 123
},
"TaskChecklistItems": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"type": "header",
"order": 123,
"score": 123,
"answers": {},
"options": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label": "<string>",
"value": "<string>",
"type": "<string>",
"color": "<string>",
"score": 123,
"flag": true,
"order": 123
}
]
}
]
},
"meta": {}
}Submits a filled-in checklist log and calculates scores and status updates.
curl --request PUT \
--url https://api.xenia.team/api/v1/task/hotels/{hotelId}/logs/{checklistLogId}/submit \
--header 'workspace-id: <workspace-id>' \
--header 'x-client-key: <api-key>' \
--header 'x-client-secret: <api-key>'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"status": "Submitted",
"progress": {
"count": 123,
"score": 123,
"progress": 123,
"passFailCount": 123,
"completedCount": 123,
"passFailCompletedCount": 123
},
"score": {
"total": 123,
"earned": 123,
"percentage": 123
},
"TaskChecklistItems": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"type": "header",
"order": 123,
"score": 123,
"answers": {},
"options": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label": "<string>",
"value": "<string>",
"type": "<string>",
"color": "<string>",
"score": 123,
"flag": true,
"order": 123
}
]
}
]
},
"meta": {}
}Hotel (Workspace) ID
Checklist log instance ID