View / Create / Edit / Delete
Search checklists#
Searches checklists using flexible filters and returns basic information about each matching checklist โ without categories, questions and attachments. Use this endpoint to quickly find the checklists you need and then request full data from the export endpoint below โ
/connector/rpc/checklist_export_with_photos โ passing var_checklist_ids.- Deleted checklists are included in the search results. They are marked with
deleted: trueand havedeleted_at/deleted_byfilled. For deleted checklistsvar_last_modified_from/var_last_modified_tofilter by the deletion date.
Request parameters:
| Request Parameter | Type | Description | Required |
|---|---|---|---|
| var_checklist_ids | Integer array | The array of checklist IDs. Make sure array braces {} are url encoded. Example: %7B97924,97925%7D | false |
| var_template_ids | Integer array | The array of checklist template IDs. Make sure array braces {} are url encoded. | false |
| var_division_ids | Integer array | The array of division IDs. Only checklists of stores that belong to these divisions are returned. Make sure array braces {} are url encoded. | false |
| var_region_ids | Integer array | The array of region IDs. Only checklists of stores that belong to these regions are returned. Make sure array braces {} are url encoded. | false |
| var_template_category_ids | Integer array | The array of template category IDs. Only checklists created from templates of these categories are returned. Make sure array braces {} are url encoded. | false |
| var_resolver_ids | Integer array | The array of resolver (user) IDs. Only checklists assigned to these users are returned. Make sure array braces {} are url encoded. | false |
| var_resolve_date_from | Timestamp without time zone | The start date for completing the checklist, formatted as a timestamp without a time zone. Example: 2024-05-21T00:00:00 | false |
| var_resolve_date_to | Timestamp without time zone | The end date for completing the checklist, formatted as a timestamp without a time zone. | false |
| var_last_modified_from | Timestamp without time zone | The start date for the last modification of the checklist, formatted as a timestamp without a time zone. | false |
| var_last_modified_to | Timestamp without time zone | The end date for the last modification of the checklist, formatted as a timestamp without a time zone. | false |
Examples
200 OK
Get checklists with questions and attachments#
Returns checklists matching the query params along with categories, questions, answers, photo attachments, linked form instances and custom fields.
- Deleted checklists are included in the export. They are marked with
deleted: trueand havedeleted_at/deleted_byfilled. For deleted checklistsvar_last_modified_from/var_last_modified_tofilter by the deletion date. checklist_gradeandchecklist_percent_gradetake approved appeals into account.question_answer_textcontains the answer as text: a grade for weighted templates, the name of the selected answer option for custom questions, or one of the predefined valuesYes,No,Medium,Irrelevant,No answer. The predefined values are localized according to the default language of your system.question_answer_sourceisbluetoothfor answers received from a bluetooth device andmanualotherwise.- All parameters are optional, but a request without any filter returns the whole checklist history of the tenant. The amount of data returned by this endpoint is usually quite large, so we strongly recommend limiting the export period with
var_last_modified_from/var_last_modified_toas much as possible, or first finding the checklists you need with the lightweight Search checklists endpoint and then exporting them byvar_checklist_ids.
Request parameters:
| Request Parameter | Type | Description | Required |
|---|---|---|---|
| var_checklist_ids | Integer array | The array of checklist IDs you wish to export. Make sure array braces {} are url encoded. Example: %7B97924,97925%7D | false |
| var_template_ids | Integer array | The array of checklist template IDs. Make sure array braces {} are url encoded. | false |
| var_division_ids | Integer array | The array of division IDs. Only checklists of stores that belong to these divisions are returned. Make sure array braces {} are url encoded. | false |
| var_region_ids | Integer array | The array of region IDs. Only checklists of stores that belong to these regions are returned. Make sure array braces {} are url encoded. | false |
| var_template_category_ids | Integer array | The array of template category IDs. Only checklists created from templates of these categories are returned. Make sure array braces {} are url encoded. | false |
| var_resolver_ids | Integer array | The array of resolver (user) IDs. Only checklists assigned to these users are returned. Make sure array braces {} are url encoded. | false |
| var_resolve_date_from | Timestamp without time zone | The start date for completing the checklist, formatted as a timestamp without a time zone. Example: 2024-05-21T00:00:00 | false |
| var_resolve_date_to | Timestamp without time zone | The end date for completing the checklist, formatted as a timestamp without a time zone. | false |
| var_last_modified_from | Timestamp without time zone | The start date for the last modification of the checklist, formatted as a timestamp without a time zone. | false |
| var_last_modified_to | Timestamp without time zone | The end date for the last modification of the checklist, formatted as a timestamp without a time zone. | false |
Examples
200 OK
Create checklists#
Accepts an array of checklists to create and returns the list of created Checklist objects.
- Date fields in the response are returned as epoch milliseconds, except
lastModifiedAt, which is returned as epoch seconds. countAnswerIsNoandcountAnswerNoSavein the response are legacy names kept for backward compatibility: they contain the number of answers left to fix and the number of fixed answers.- By default, only one checklist with the same template, store, resolver and plan date can be created โ an attempt to create a duplicate returns a validation error. This can be changed by your administrator with the "Allow conducting multiple inspections per day using the same template" option in Administration โ Inspections.
Request body:
| Attribute | Type | Description | Nullable |
|---|---|---|---|
| resolverId | Integer | Identifier of resolver | false |
| shopId | Integer | Identifier of store | false |
| templateId | Integer | Identifier of template | false |
| resolveDate | Date | Plan date in YYYY-MM-DD format | false |
| resolverIds | Integer array | Identifiers of resolvers. Use together with withManyResolvers: true to assign the checklist to several users at once (instead of resolverId) | true |
| withManyResolvers | Boolean | Set to true to assign the checklist to several resolvers listed in resolverIds. Default: false | true |
| needReview | Boolean | If true, the checklist requires review after completion. Only applies when the template allows overriding its review settings; otherwise the template setting is used | true |
| visibleFromDate | Date | The date from which the checklist becomes visible to the resolver | true |
Examples
200 OK
Delete checklist by id#
Delete checklist by id
Examples
200 OK