POST/schedules

Create Schedule

This endpoint allows you to create a new create schedule entry in the system.
POST/schedules

Mandatory Fields

  • body

Optional Fields

  • scheduleName
  • shopId
  • year
  • month
  • dow
  • day
  • hour
  • minute
  • startDate
  • endDate

Note

For any technical assistance or feature requests, please contact our API support team.

Important Notes

  • Always use HTTPS for API requests.
  • Access tokens are valid for a limited time and should be refreshed periodically.
  • Rate limiting applies to all endpoints to ensure system stability.

Parameter Details

NameInTypeRequiredDescription
bodybodyobjectRequirednone
» scheduleNamebodystringOptionalName of the schedule.
» shopIdbodyintegerOptionalUnique ID generated when creating the shop.
» yearbodystring(date)OptionalYear(s) the schedule runs.
» monthbodystringOptionalMonth(s) the schedule runs.
» dowbodystringOptionalDays of the week the schedule runs.
» daybodystringOptionalDays of the month the schedule runs.
» hourbodystringOptionalHours the schedule runs.
» minutebodystringOptionalMinutes the schedule runs.
» startDatebodystring(date)OptionalStart date of the schedule (UTC format).
» endDatebodystring(date)OptionalEnd date of the schedule. If undefined, runs indefinitely.
  • All parameters should be formatted according to the types specified in the table above.

Responses

StatusMeaningDescriptionSchema
201CreatedCreatedInline
400Bad RequestBad RequestNone
401UnauthorizedUnauthorizedNone
403ForbiddenForbidden - Access deniedNone
404Not FoundSchedule not foundNone
429Too Many RequestsToo Many RequestsNone
500Internal Server ErrorInternal Server ErrorNone

Response Notes

The response will include a status field indicating success or failure, along with the requested data or relevant error messages. Standard HTTP status codes are used to indicate the outcome of the request.

Example Request

# You can also use wget
curl -X POST /schedules \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}' \
  -d '{"scheduleName":"string","shopId":0,"year":"string","month":"string","dow":"string","day":"string","hour":"string","minute":"string","startDate":"string","endDate":"string"}'

Body parameter

{
  "scheduleName": "My Schedule",
  "shopId": 0,
  "year": "*",
  "month": "*",
  "dow": "*",
  "day": "*",
  "hour": "*",
  "minute": "00",
  "startDate": "2019-08-24",
  "endDate": "2019-08-24"
}

Example responses

{
  "message": "Schedule created successfully.",
  "scheduleId": 1
}

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.