Hi, I'm using REST API for GUI control calls. In particular, I’m performing a PUT call to change the “Condition” in a historical report template so that I can modify the dates range. The request is working without errors (result code 204), but after that I don't see any change in the template available in the GUI.
The Call is structured as follow:
- Sending a PUT request to: https://selectapi.datascope.refinitiv.com/RestApi/v1/Extractions/ReportTemplates(‘template_id’)
- Using the following json body:
- "@odata .type":"#DataScope.Select.Api.Extractions.ReportTemplates.PriceHistoryReportTemplate",
- "ReportTemplateId":"template_id",
- "ShowColumnHeaders":false,
- "CompressionType":"None",
- "OutputFormat":"CommaSeparatedValues",
- "TemplateTypeCode":"ET2",
- "WidthStyle":"VariableWidth",
- "@odata .type":"#DataScope.Select.Api.Extractions.ReportTemplates.ContentFieldTextFormat",
- "WidthStyle":"VariableWidth",
- "@odata .type":"#DataScope.Select.Api.Extractions.ReportTemplates.ContentFieldTextFormat",
- "FieldName":"Universal Close Price",
- "WidthStyle":"VariableWidth",
- "@odata .type":"#DataScope.Select.Api.Extractions.ReportTemplates.ContentFieldNumberFormat",
- "DecimalSeparator":"Period",
- "NegativeSignPosition":"Before",
- "ThousandSeparator":"Comma",
- "UseThousandSeparator":false,
- "FieldName":"Trade Date",
- "WidthStyle":"VariableWidth",
- "@odata .type":"#DataScope.Select.Api.Extractions.ReportTemplates.ContentFieldDateFormat",
- "DateFormat":"yyyy-MM-dd"
- "ReportDateRangeType":"Range",
- "QueryStartDate":"2023-04-04T00:00:00Z",
- "QueryEndDate":"2024-01-01T00:00:00Z",
No error returned and the result code is 204, but the template is not updated.
Could you please advise if any change is required in this PUT?
Many thanks for your help.
Pietro