Skip to main content
PUT
/
api
/
v1
/
task
/
hotels
/
{hotelId}
/
logs
/
{checklistLogId}
/
submit
Submit a completed checklist
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": {}
}

Authorizations

x-client-key
string
header
required
x-client-secret
string
header
required

Headers

workspace-id
string<uuid>
required

Path Parameters

hotelId
string<uuid>
required

Hotel (Workspace) ID

checklistLogId
string<uuid>
required

Checklist log instance ID

Response

200 - application/json

Checklist successfully submitted

data
object
meta
object
I