Skip to main content

Scheduled checklists

Create checklist generation rule#

You can create a rule for generating checklist, set the period for the rule to work, frequency and time of execution.

Request body:

AttributeTypeDescriptionNullable
nameStringRule namefalse
activeBooleanFlag indicating rule is activefalse
needReviewBooleanThe need for a reviewfalse
generationTypeStringAvailable 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
dateFromLocalDateTimeRule start timefalse
dateToLocalDateTimeRule end timefalse
scheduledTimeLocalDateTimeChecklist generation timefalse
shopsList of IntegersShops idsfalse
regionsList of Integersregions idsfalse
divisionsList of Integersdivisions idsfalse
resolverLevelStringLevel of resolver false
businessDirectionIdsList of IntegersBusiness direction idsfalse
catalogValuesList of Integersfalse
templatesList of IntegersTemplate idsfalse
dayOfMonthList of IntegersTemplate idsfalse
dayOfWeekList of IntegersDay of weekfalse
monthsList of IntegersMonths numbersfalse
daysList of IntegersDaysfalse

Response

Returns Checklist template object

Examples

curl --request POST https://api.qvalon.com/v1/checklist/rule \
--header 'Authorization: Bearer <your_token>' \
-d '{"name":"rule 2","active":true,"dateTo":null,"dateFrom":"2022-08-05T00:00:00.000Z","needReview":false,"scheduledTime":"13:00","shops":[665],"regions":[],"divisions":[],"businessDirectionIds":[1003],"resolverLevel":"SHOP","templates":[629],"catalogValues":[],"generationType":"weekly","dayOfWeek":[2,4]}'
200 OK
[
{
"id": 7,
"name": "rule 2",
"active": true,
"needReview": false,
"generationType": "weekly",
"dateFrom": "2022-08-05T00:00:00.000Z",
"dateTo": null,
"scheduledTime": "13:00",
"lastGenerationDate": null,
"shops": [
{
"id": 665,
"locality": "Shoes shop",
"sap": "002 shop",
"active": true
}
],
"regions": [],
"divisions": [],
"catalogValues": [],
"templates": [
{
"id": 629,
"name": "Shoes template",
"active": true
}
],
"businessDirectionIds": [
1003
],
"resolverLevel": "SHOP",
"dayOfMonth": [],
"dayOfWeek": [
2,
4
],
"months": [],
"days": [
2,
4
]
}
]

Delete task#

Returns code status

Examples

curl --request DELETE https://api.qvalon.com/v1/tasks-manual/162 \
--header 'Authorization: Bearer <your_token>'
200 OK
{}