API: Delete Schedule

Request

Soft delete a specific schedule by ID:

DELETE /schedules/{id}

Sample Response:


{
  "status": "success",
  "message": "Schedule deleted successfully",
  "data": null
}
                

Notes:

  • The schedule ID is required in the URL to specify which schedule to delete.
  • If the schedule does not exist or has already been deleted, the API will return a 404 error.
  • This is a soft delete operation - the schedule record remains in the database but is marked as deleted.
  • After deletion, the schedule status is set to 0 and the deleted_at timestamp is set.