How To Enable And Disable Orchestrator Triggers With API Calls?

How to disable Orchestrator Triggers with API calls?

Issue Description: How to enable/disable Orchestrator Triggers using API calls?

Resolution:

  1. Use Orchestrator HTTP Request the End Points odata/ProcessSchedules/UiPath.Server.Configuration.OData.SetEnable and mention the Json payload below to disable and enable the trigger based on folder.

Json Payload

{

"{enabled: false, scheduleIds: [20]}"

}

  1. If the trigger is disabled, use enabled parameter value to false and suppose need to disable multiple triggers means separate scheduled ID comma (for Example20,21) in the Json payload
  2. If the trigger is enabled, use enabled parameter value to true