Scheduled checklists
Create checklist generation rule#
You can create a rule for generating checklists, set the period for the rule to work, frequency and time of execution.
Request body:
| Attribute | Type | Description | Nullable |
|---|---|---|---|
| name | String | Name of the rule | false |
| active | Boolean | Whether the rule is active | false |
| needReview | Boolean | Whether the generated checklist requires a review | false |
| generationType | String | Available types:daily - daily weekly - on certain days of the week monthly - on specified days of the month lastDayOfMonth - on last day of the month quarterly - quarterly halfYearly - half-yearly | false |
| dateFrom | LocalDateTime | Date and time from which the rule is active | false |
| dateTo | LocalDateTime | Date and time until which the rule is active | false |
| scheduledTime | Time | Time of day when the checklist is generated | false |
| shops | List of Integers | Identifiers of stores | false |
| regions | List of Integers | Identifiers of regions | false |
| divisions | List of Integers | Identifiers of divisions | false |
| resolverLevel | String | Organizational level of the resolver | false |
| businessDirectionIds | List of Integers | Identifiers of business directions | false |
| catalogValues | List of Integers | Identifiers of catalog values used as an additional store filter | false |
| templates | List of Integers | Identifiers of checklist templates | false |
| dayOfMonth | List of Integers | Days of the month on which to generate the checklist. Used when generationType is not weekly; alternatively use days | false |
| dayOfWeek | List of Integers | Days of the week (1 โ Monday โฆ 7 โ Sunday) on which to generate the checklist. Used when generationType is weekly; alternatively use days | false |
| months | List of Integers | Month numbers on which to generate the checklist. Used for quarterly / halfYearly generation types | false |
| days | List of Integers | Shorthand for dayOfWeek / dayOfMonth: automatically routed to the right field based on generationType | false |
Response
Returns a Generation rule object
Examples
200 OK