PUT/schedule/{scheduleId}

Update Schedule

Update Schedule

Implementation Notes:

This method enables you to edit a schedule by providing the scheduleID as an input.

PUT/schedule/{scheduleId}

Parameter Details

NameInTypeRequiredDescription
scheduleIdpathintegerRequiredEnter your scheduleId
bodybodyobjectOptionalnone
» scheduleNamebodystringOptionalEnter schedule name
» yearbodystringOptionalThe year component of the schedule. Use '*' to match any year.
» monthbodystringOptionalThe month component of the schedule. Use '*' to match any month.
» dowbodystringOptionalThe day of the week component of the schedule. Use '*' to match any day of the week.
» daybodystringOptionalThe day of the month component of the schedule. Use '*' to match any day of the month.
» hourbodystringOptionalThe hour component of the schedule. Use '*' to match any hour of the day.
» minutebodystringOptionalThe minute component of the schedule. Use '*' to match any minute of the hour.
» secondsbodystringOptionalThe second component of the schedule. Use '*' to match any second of the minute.
» startDatebodystring(date)OptionalThe start date of the schedule.
» endDatebodystring(date)OptionalThe end date of the schedule.

Responses

StatusMeaningDescriptionSchema
200OKUpdated
400Bad RequestBad RequestNone
401UnauthorizedAuthorization FailedNone
429Too Many RequestsToo Many RequestsNone
500Internal Server ErrorInternal Server ErrorNone

Example Request

# You can also use wget
curl -X PUT http://localhost:3000/schedule/{scheduleId} \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Authorization: API_KEY'

Body parameter

{
  "scheduleName": "X-Mas",
  "year": "*",
  "month": "*",
  "dow": "*",
  "day": "*",
  "hour": "1",
  "minute": "00",
  "seconds": "00",
  "startDate": "2019-08-24",
  "endDate": "2019-08-24"
}

Example responses

200 Response
{
  "message": "Schedules details 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.