Date Interval in API Workflows

Hi Everyone,

When scheduling an API workflow, I noticed that ‘date interval’ is not one of the available data types when defining parameters. Is there a reason why that is the case? Perhaps by passing an integer to the API parameter and then converting to a date interval but there does not appear to be a way to do this.

Thanks for the help.

In case anyone else comes across this issue, I think I have solved it by switching the instances where I used ‘date interval’ as a field type to ‘number’ where I will store the number in seconds rather than milliseconds like I did when the field type was a date interval. Then, whenever I do manipulations on a data point in the API workflow, I will use +seconds(seconds stored as number).