Skip to main content

Checklists

The published portal's Task list blocks. Tasks are written in the builder; progress belongs to each tenant and is what progress get / progress update / progress delete read and change. The progress file commands handle the file a tenant uploads for a Request task.

CommandHTTPDescription
checklists listGET /v1/checklistsList checklists
checklists getGET /v1/checklists/{id}Get checklist
checklists progress getGET /v1/checklists/{id}/progressGet tenant progress
checklists progress updatePUT /v1/checklists/{id}/progressUpdate tenant progress
checklists progress deleteDELETE /v1/checklists/{id}/progressReset tenant progress
checklists progress file getGET /v1/checklists/{id}/progress/fileDownload task file
checklists progress file createPOST /v1/checklists/{id}/progress/fileUpload task file
checklists progress file deleteDELETE /v1/checklists/{id}/progress/fileRemove task file

Examples​

--params carries query, path and header parameters (id, page, filters, X-Workspace-Id); --json carries the request body; --fields limits which fields come back — worth using on every list/get to save context. See Global flags for the full reference.

# List checklists
kobana dashboards checklists list --fields "id,title,page_path"

# Get tenant progress
kobana dashboards checklists progress get \
--params '{"id": "CHECKLIST_ID", "tenant_id": "TENANT_ID"}'

# Update tenant progress
kobana dashboards checklists progress update \
--params '{"id": "CHECKLIST_ID"}' \
--json '{"tenant_id": "TENANT_ID", "task_ids": ["TASK_ID"], "status": "done"}'

# Download task file
kobana dashboards checklists progress file get \
--params '{"id": "CHECKLIST_ID", "tenant_id": "TENANT_ID", "task_id": "TASK_ID"}' \
--output arquivo.pdf

Next steps​