Hello @Steven Painter,
Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query? If so please can you click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question.
Thanks
AHS
Please be informed that a reply has been verified as correct in answering the question, and has been marked as such. Thanks, AHS
Hi @Steven Painter,
GetValidContentFieldTypes is a GET request and there is no need for http body. For instance, to request valid fields for TIme and Sales, use the URL:
You still need to supply the Authorization header key just like all other TRTH requests.
Please take a look at the "REST API Tutorial 4: On Demand tick data extraction" in the TRTH REST Tutorial page
It has detail instructions of getting valid content fields.
I’ve ensured my URL and headers are identical (except for the token) and I keep getting:
ValueError: _request failed: Response Error is 404
No HTTP resource was found that matches the request URI 'https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/GetValidContentFieldTypes(ReportTemplateType=ThomsonReuters.Dss.Api.Extractions.ReportTemplates.ReportTemplateTypes'TickHistoryTimeAndSales')'.
Am I perhaps not correctly permissioned?
@Steven Painter, I get the same error if I use an HTTP POST instead of an HTTP GET. Can you ensure you are using HTTP GET for this request ?