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

  • 200

    Deleted schedule object.

    Hide response attribute Show response attribute object
  • 400

    Bad Request

    Hide response attribute Show response attribute object
  • 401

    Unauthorized

    Hide response attribute Show response attribute object
  • 404

    Not Found

    Hide response attribute Show response attribute object
  • 500

    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"
}