question

Upvotes
Accepted
3 0 1 2

How to update a report template associated with a schedule in TRTHv2 using the REST API?

Hello,

I would like to download time and sales data at the end of the day, every day using TRTHv2 REST API. I created a schedule to run at a specific time each day. Initially I specify, say, today;'s date in the range query of Report template. I will be needing to update this range query to tomorrow's date, after the schedule is triggered each day. How do I do this?

Thank you!

tick-history-rest-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvote
Accepted
11.3k 25 8 13

@Swathi,

You can use "Schedule Relative Query" instead of "Range Query" once you create Tick History Time and Sales Report template. The Schedule Relative Query can be used to retrieve all data for a span of time that is defined relative to the extraction execution time. Each time the extraction executes, data is retrieved for that period of time defined relative to the extraction date. For daily extraction, you can define the start, and the end as Today.


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
3 0 1 2
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea