Delete a schedule by id

DELETE /v1/schedule/{scheduleId}

Deletes a schedule if found. This permanently disabled the schedule but soft deletes the schedule object (metadata is kept even after deletion).

Responses

  • Deleted schedule object.

    Hide response attribute Show response attribute object
  • Bad Request

    Hide response attribute Show response attribute object
  • Unauthorized

    Hide response attribute Show response attribute object
  • Not Found

    Hide response attribute Show response attribute object
  • Internal Error

    Hide response attribute Show response attribute object
DELETE /v1/schedule/{scheduleId}
curl \
 -X DELETE https://cron.apihustle.com/v1/schedule/{scheduleId} \
 -H "ClientId: string" \
 -H "ApiKey: string"
Response examples (200)
{
  "success": true
}
Response examples (400)
{
  "error": "Error message"
}
Response examples (401)
{
  "error": "Error message"
}
Response examples (404)
{
  "error": "Error message"
}
Response examples (500)
{
  "error": "Error message"
}