PUT/schedules/{scheduleId}

Update Schedule

Standard API endpoint for Update Schedule.
PUT/schedules/{scheduleId}

Mandatory Fields

  • scheduleId
  • body
  • 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
scheduleIdpathintegerRequiredUnique identifier for the schedule to update
bodybodyobjectRequirednone
» scheduleNamebodystringRequiredName of the schedule.
» shopIdbodyintegerRequiredUnique identifier for the shop in the schedule.
» yearbodystringRequiredYear for the schedule.
» monthbodystringRequiredMonth for the schedule.
» dowbodystringRequiredDay of the week for the schedule.
» daybodystringRequiredDay of the month for the schedule.
» hourbodystringRequiredHour for the schedule.
» minutebodystringRequiredMinute for the schedule.
» startDatebodystring(date)RequiredStart date of the schedule.
» endDatebodystring(date)RequiredEnd date of the schedule.
  • All parameters should be formatted according to the types specified in the table above.

Responses

StatusMeaningDescriptionSchema
200OKSchedule updated successfullyInline
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 PUT /schedules/{scheduleId} \
  -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": 1,
  "year": "*",
  "month": "*",
  "dow": "*",
  "day": "*",
  "hour": "*",
  "minute": "20",
  "startDate": "2019-08-24",
  "endDate": "2019-08-24"
}

Example responses

200 Response
{
  "message": "Schedule updated successfully."
}

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.