POST/schedule

Create Schedule

This endpoint allows you to create custom schedules for executing shops at specified dates and times.

Note: All schedules are queued at the fifty-fifth minute of the previous hour. Jobs scheduled within the current hour run the next day.
POST/schedule

Optional Fields

  • dow
  • endDate

Implementation Notes

This endpoint allows you to create custom schedules for executing shops at specified dates and times.

Parameter Details

NameInTypeRequiredDescription
bodybodyobjectRequirednone
» scheduleNamebodystringRequirednone
» shopIdbodynumberRequirednone
» yearbodystringRequirednone
» monthbodystringRequirednone
» dowbodystringOptionalnone
» daybodystringRequirednone
» hourbodystringRequirednone
» minutebodystringRequirednone
» secondsbodystringRequirednone
» startDatebodystring(date)Requirednone
» endDatebodystring(date)Optionalnone

Responses

StatusMeaningDescriptionSchema
200OKSchedule created successfullyInline
400Bad RequestBad RequestNone
401UnauthorizedAuthentication Failed or Account validity ExpiredNone
429Too Many RequestsToo Many RequestsNone
500Internal Server ErrorInternal Server ErrorNone

Example Request

# You can also use wget
curl -X POST /schedule \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

Body parameter

{
  "scheduleName": "Sample Schedule",
  "shopId": 1,
  "year": "*",
  "month": "1,2,12",
  "dow": "*",
  "day": "1,15",
  "hour": "0,12",
  "minute": "0",
  "seconds": "0",
  "startDate": "2019-08-24",
  "endDate": "2019-08-24"
}

Example responses

200 Response
{
  "message": "Schedule Created Successfully",
  "scheduleId": 123
}

Need Support?

Our team is here to help you integrate and make the most of our APIs. Get in touch for technical support, custom solutions, or any questions.