feat: add edit schedule functionality (#2700)

This commit is contained in:
Max Novich
2025-05-28 13:58:22 -07:00
committed by GitHub
parent ea6a7a7847
commit 132e0b7fca
10 changed files with 969 additions and 55 deletions
+61
View File
@@ -539,6 +539,56 @@
}
}
},
"/schedule/{id}": {
"put": {
"tags": [
"schedule"
],
"operationId": "update_schedule",
"parameters": [
{
"name": "id",
"in": "path",
"description": "ID of the schedule to update",
"required": true,
"schema": {
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateScheduleRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Scheduled job updated successfully",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ScheduledJob"
}
}
}
},
"400": {
"description": "Cannot update a currently running job or invalid request"
},
"404": {
"description": "Scheduled job not found"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/schedule/{id}/pause": {
"post": {
"tags": [
@@ -2198,6 +2248,17 @@
"success": true
}
},
"UpdateScheduleRequest": {
"type": "object",
"required": [
"cron"
],
"properties": {
"cron": {
"type": "string"
}
}
},
"UpsertConfigQuery": {
"type": "object",
"required": [