Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Server Ideas

Share your Server product ideas - we're listening!
Submitting an Idea?

Be sure to review our Idea Submission Guidelines for more information!

Submission Guidelines

disable/enable schedule on alterxy server use API

Currently when we need to disable/enable schedule on API,we need to update all the schedule info,could you provide only one attribute to disable.

 

Can we just update on parameter

 

"enabled": true, --> "enabled": false

 

current update example,we need update all

 

{
"workflowId": "string",
"ownerId": "string",
"iteration": {
"iterationType": "Once",
"startTime": "2022-09-06T08:01:52.717Z",
"endTime": "2022-09-06T08:01:52.717Z",
"hourlyContract": {
"hours": 0,
"minutes": 0
},
"dailyContract": {
"runOnlyWorkWeek": true
},
"weeklyContract": {
"daysOfWeek": [
"Sunday"
]
},
"monthlyContract": {
"simpleDayOfMonth": true,
"dayOfMonth": 0,
"occurrence": 0,
"dayOfWeek": "Sunday"
},
"customContract": {
"daysOfMonth": [
0
],
"months": [
0
]
}
},
"name": "string",
"comment": "string",
"priority": "Default",
"workerTag": "string",
"enabled": true,
"credentialId": "string"
}

1 Comment
TheCoffeeDude
11 - Bolide

What should happen if a schedule is purposely disabled and you run the API to update all schedules to enabled? From the way you've written this, that schedule would be enabled. I think a better design is to have a setting in the gallery to disable all schedule processing; which would be great when doing upgrades or maintenance.