TP API Question

I am using the /v2/projects/{projectId}/reports

I want to use the “olderThan”: “2021-12-22T17:49:09.994Z” but have it run through a job which I can set for every few days or whatever. But rather than have it deleted based on the above I would like something like

“olderThan”: “Today + 3 days” not sure how to make this happen.

Hi @marcel.bauer,
You can do this by first using the action Get Future or Past Date
with 3 days in the past and put in a parameter like this:

then use the action http delete request and put these values:

and put in body the older then date body:


Please let me know if you managed to implement this.

Kind regards

Thank you. Been on vacation so I will give this a try today and let you know how it goes. I appreciate it.

I think I have everything set up but I am kind of stuck on this part

not completely sure on how to set up the {Date} in the body and also the “Res” in the Response?

Here is what I have, again totally guessing here
Image 2022-01-03 at 11.33.53 AM

Image 2022-01-03 at 11.31.53 AM
Image 2022-01-03 at 11.32.59 AM

I think I figured it out

Hi @marcel.bauer,
You should use the date action that store the value returned from the action get future or past date.
You give it in the body to be used as from which date to start deleting the old reports.
the result parameter is only to check if the returned value form the request to delete is indeed correct like 200 response.

Happy to hear it works, for you.
You are always welcome to contact us at any issue you face.

1 Like

This topic was automatically closed after 180 days. New replies are no longer allowed.