How to enable/disable Trigger schedule using Orchestrator HTTP request?

Hello everyone,
So I read this thread How to Stop the Trigger(Schedule) thru API, but I have no idea how can I enable/disable Trigger schedule by using information from swagger and applying them to Orchestrator HTTP request. Can you guys help me?
Here is what I fill in Orchestrator HTTP request: method = post, RelativeEndpoint= “/odata/ProcessSchedules/UiPath.Server.Configuration.OData.SetEnabled”. What I should fill next?
Thanks for reading.

@Dam_Son

Check below for your reference

https://docs.uipath.com/orchestrator/reference/schedules-requests

Hope this may help you

Thanks

1 Like

We can try with PROCESS SCHEDULES in swagger
Where the body is

{
“enabled”: true,
“scheduleIds”: [
0
]
}

Choose application/Json
And
Mention the organisation I’d

We can get the body string from swagger it self

Cheers @Dam_Son

1 Like

I’ve read many threads saying about the body. What is it?
Where should I paste this code? What activities I used to paste this code?

{
“enabled”: true,
“scheduleIds”: [0]
}

For scheduleIds, I have 2 trigger schedules. How do I know the id of each schedule?
Thank you.

1 Like

We need to pass this in body
And mention the if one by one
@Dam_Son

1 Like

Thank you. I realized that I installed wrong Web Activity Packages so there was no HTTP request. Now I use HTTP request and see the “body” you mentioned. At first I used Orchestrator HTTP request

1 Like

Great

@Dam_Son

No further question. You can close it. Thank you.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.