Create Process Schedule through API

Hi Everyone,
I am able to create Schedule through swagger but when I am passing same body in post method in UiPath its saying Model must not be null. I am unable to get actual error.
Kindly assist me.

@ppr @Gokul001

Hi @raja.arslankhan

are you using orchestrator http request ?

can you show what body you are using?

https://docs.uipath.com/orchestrator/reference/response-codes

cheers


yes orchestrator http request

in general we start to check if a particular needed property is missed out or set, but should not be set

Hi @raja.arslankhan

Can you try giving a runtime type. it does not take null I believe it has its own set

cheers

@Anil_G I am using same in swagger its creating Schedule successfully.

Hi @raja.arslankhan

Those are not madatory fields. Then either remove them. and also in swagger you can see ‘Key’ is also a property

Can you try giving this value and check for runtype ‘NonProduction’

cheers

@raja.arslankhan

For few fields where value is required if its null then you might see this …so its better you fill those properties may be in swagger its defaulting to a value from the given not sure of it

and stop process expression if not needed then give it as null instead of empty string

cheers