question

Upvotes
Accepted
64 3 9 11

what's URL I should use to create Corporate Actions Standard ReportTemplate

I try to create a

Corporate Actions Standard ReportTemplate but I got

Bad Request and invalid error from Java or Postman, what URL I should use?

https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/CorporateActionsStandardReportTemplate at moment it looks wrong.

{
"@odata.type":"#ThomsonReuters.Dss.Api.Extractions.ReportTemplates.CorporateActionsStandardReportTemplate",
"ShowColumnHeaders":false,
"Name":"test1Name_TTemplate",
"Headers":[

],
"Trailers":[

],
"ContentFields":[
{
"FieldName":"Corporate Actions ID",
"Format":null
},
{
"FieldName":"Corporate Actions Type",
"Format":null
},
{
"FieldName":"Corporate Action Notes",
"Format":null
},
{
"FieldName":"Delete Marker",
"Format":null
},
{
"FieldName":"Event Status",
"Format":null
},
{
"FieldName":"Capital Change Announcement Date",
"Format":null
},
{
"FieldName":"Capital Change Deal Date",
"Format":null
},
{
"FieldName":"Capital Change Ex Date",
"Format":null
},
{
"FieldName":"Effective Date",
"Format":null
},
{
"FieldName":"Capital Change Event Type",
"Format":null
},
{
"FieldName":"Actual Adjustment Factor",
"Format":{
"@odata.type":"#ThomsonReuters.Dss.Api.Extractions.ReportTemplates.ContentFieldNumberFormat",
"DecimalPlaces":12,
"DecimalSeparator":"Period",
"UseLeadingZero":false,
"NegativeSignPosition":"Before",
"UseThousandSeparator":false,
"UseTrailingZero":false
}
},
{
"FieldName":"New Shares Terms",
"Format":null
},
{
"FieldName":"Old Shares Terms",
"Format":null
},
{
"FieldName":"Dividend Pay Date",
"Format":null
},
{
"FieldName":"Dividend Announcement Date",
"Format":null
},
{
"FieldName":"Dividend Ex Date",
"Format":null
},
{
"FieldName":"Dividend Payment Type",
"Format":null
},
{
"FieldName":"Dividend Rate",
"Format":{
"@odata.type":"#ThomsonReuters.Dss.Api.Extractions.ReportTemplates.ContentFieldNumberFormat",
"DecimalPlaces":12,
"DecimalSeparator":"Period",
"UseLeadingZero":false,
"NegativeSignPosition":"Before",
"UseThousandSeparator":false,
"UseTrailingZero":false
}
},
{
"FieldName":"Currency Code",
"Format":null
}
],
"Condition":{
"ReportDateRangeType":"Range",
"QueryStartDate":"2006-01-01T00:00:00.000Z",
"QueryEndDate":"2017-04-27T23:59:59.999Z",
"IncludeInstrumentsWithNoEvents":true,
"IncludeNullDates":false,
"ExcludeDeletedEvents":true,
"IncludeCapitalChangeEvents":true,
"IncludeDividendEvents":true,
"IncludeEarningsEvents":false,
"IncludeMergersAndAcquisitionsEvents":false,
"IncludeNominalValueEvents":false,
"IncludePublicEquityOfferingsEvents":false,
"IncludeSharesOutstandingEvents":false,
"IncludeVotingRightsEvents":false,
"CorporateActionsCapitalChangeType":"CapitalChangeAnnouncementDate",
"CorporateActionsDividendsType":"DividendAnnouncementDate"
}
}

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

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

1 Answer

· Write an Answer
Upvotes
Accepted
11.3k 25 9 14

@bin

The "s" character is missing in your URI. The correct URI is https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/CorporateActionsStandardReportTemplates

You can see the URI, other properties and usage examples in the REST API Reference Tree.

I have also tried your message with the correct URI. The message can create Report template properly.

icon clock
10 |1500

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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