deleting pending requests.

MoisesGomez27
edited April 24 in DSS

I see some pending extraction requests i'd like to delete but could not find anything in the API docs related to deleting pending requests.

[{'JobId': '0x095ae227ca7b01ca',
  'UserId': 9023248,
  'Status': 'InProgress',
  'StatusMessage': 'InProgress',
  'Description': 'HistoricalReferenceReportTemplate Extraction',
  'CreateDate': '2025-04-15T15:32:30.370Z',
  'StartedDate': '2025-04-15T15:32:30.370Z',
  'MonitorUrl': "https://selectapi.datascope.refinitiv.com/restapi/v1/Extractions/ExtractRawResult(ExtractionId='0x095ae227ca7b01ca')"},
 {'JobId': '0x095ad2075abb014a',
  'UserId': 9023248,
  'Status': 'InProgress',
  'StatusMessage': 'InProgress',
  'Description': 'HistoricalReferenceReportTemplate Extraction',
  'CreateDate': '2025-04-15T15:28:11.523Z',
  'StartedDate': '2025-04-15T15:28:11.523Z',
  'MonitorUrl': "https://selectapi.datascope.refinitiv.com/restapi/v1/Extractions/ExtractRawResult(ExtractionId='0x095ad2075abb014a')"},
 {'JobId': '0x095ad245aaeb018e',
  'UserId': 9023248,
  'Status': 'InProgress',
  'StatusMessage': 'InProgress',
  'Description': 'HistoricalReferenceReportTemplate Extraction',
  'CreateDate': '2025-04-15T15:26:48.503Z',
  'StartedDate': '2025-04-15T15:26:48.503Z',
  'MonitorUrl': "https://selectapi.datascope.refinitiv.com/restapi/v1/Extractions/ExtractRawResult(ExtractionId='0x095ad245aaeb018e')"}]
 
How can I delete these via API? Can you provide a sample post/delete URL?

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @MoisesGomez27

    Thank you for reaching out to us.

    You can cancel a job using the HTTP DELETE method with a monitor URL. For example:

    DELETE https://selectapi.datascope.refinitiv.com/RestApi/v1/Extractions/ExtractRawResult(ExtractionId='0x095d8b5d520b05be')

    The job status will be PendingCancellation":

            {
    "JobId": "0x095d8b5d520b05be",
    "UserId": 9008895,
    "Status": "PendingCancellation",
    "StatusMessage": "PendingCancellation",
    "Description": "TickHistoryRawReportTemplate Extraction",
    "ProgressPercentage": 0,
    "CreateDate": "2025-04-24T01:59:15.993Z",
    "StartedDate": "2025-04-24T01:59:15.993Z",
    "MonitorUrl": "https://selectapi.datascope.refinitiv.com/restapi/v1/Extractions/ExtractRawResult(ExtractionId='0x095d8b5d520b05be')"
    },

    For more information, please refer to the Job Cancellation.