POST/api/v1/schedules/bulk

Bulk Schedule Upload

This endpoint allows you to upload a CSV file containing multiple schedule definitions to create schedules in bulk. The uploaded CSV must conform to the required headers and schema.
  • _timezone: The ID of the timezone.
  • dayOfMonth: The day(s) of the month when the schedule is active. Can be a number (1-31), or * to indicate all days. Multiple days should be separated by |.
  • month: The month(s) when the schedule is active. Can be a number (1-12), or * to indicate all months. Multiple months should be separated by |.
  • dayOfWeek: The day(s) of the week when the schedule is active. Can be a number (0-6), where 0 is Sunday, or * to indicate all days. Multiple days should be separated by |.
  • hour: The hour(s) when the schedule is active. Can be a number (0-23), or * to indicate all hours. Multiple hours should be separated by |.
  • minute: The minute(s) when the schedule is active. Can be a number (0-59). Multiple minutes are not accepted.
  • isActiveStatus: Boolean value indicating whether the schedule is active (true or false).
  • startDate: The start date of the schedule (format: YYYY-MM-DD).
  • endDate: The end date of the schedule (format: YYYY-MM-DD). If omitted, the schedule runs indefinitely.
  • scheduleName: The name of the schedule.
  • _shops: The ID(s) of the shop(s) associated with the schedule, separated by | if multiple.
POST/api/v1/schedules/bulk

Parameter Details

NameInTypeRequiredDescription
bodybodyobjectRequirednone
» filebodystring(binary)RequiredThe CSV file to upload.

Responses

StatusMeaningDescriptionSchema
200OKSuccessNone
400Bad RequestBad RequestNone
401UnauthorizedUnauthorizedNone
404Not FoundNot found.None
429Too Many RequestsToo Many Requests.None
500Internal Server ErrorInternal Server ErrorNone

Example Request

# You can also use wget
curl -X POST /api/v1/schedules/bulk \
  -H 'Content-Type: multipart/form-data' \
  -H 'Accept: application/json' \
  -H 'Authorization: API_KEY'

Body parameter

file: string

Example responses

200 Response
{
  "error": false,
  "message": "Successfully Uploaded!",
  "scheduleName": [
    "Flightschedule_name_1",
    "Flightschedule_name_2",
    "Flightschedule_name_3"
  ],
  "errorLog": []
}

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.