Can I have an optional parameter for a Published REST service?
I am creating a published REST service in my app and I need two parameters. One is the Id which is required and one is an Is Active boolean which I want to be optional and default to true. I'm needing help making it optional and defaulting to true. It is a GET method and I have both parameters set to Path.
Path parameters are required and cannot be made optional, query parameters can be made optional where an empty is passed if the query parameters are not present.
If you must use the path approach then you will need to add a second operation that only takes the id parameter, this will also need its own microflow that does not have the active parameter.
Here is an example screenshot that should help you get started: