Skip to main content

terminateReportFolderHistory

terminateReportFolderHistory(folderId)

DELETE /api/2.0/files/folder/{folderId}/log/report

Terminate the folder history report generation

Gives up the history report the caller has started for a folder with POST api/2.0/files/folder/{folderId}/log/report. The request only asks the background worker to stop, and the answer carries no body, so a following GET api/2.0/files/folder/{folderId}/log/report is what shows the task ending as cancelled. Asking to terminate when nothing is running is accepted and changes nothing, which makes the call safe to repeat. A report that has already finished is not undone by this call and its file stays in My documents. The caller needs read access to the folder and may not be a guest; a caller who fails the access rule is answered with 403, a folder that does not exist with 404, and a portal with the login history and audit trail section turned off with 402. Each caller can only terminate their own report.

Parameters​

NameInTypeDescriptionNotes
folderIdpathInteger (int32)The folder whose running history report is to be given up. It is the folder that was passed to the operation that started the report.[required]

Responses​

Status codeDescriptionTypeResponse headers
200The request to stop the report was accepted-X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
402The login history and audit trail section is turned off for this portal--
403The caller may not export the history of this folder--
404The folder does not exist--
401UnauthorizedErrorApiResponse-
429Too Many Requests.ErrorApiResponseRetry-After
500Internal Server Error.ErrorApiResponse-
400Bad Request.ErrorApiResponse-
502Bad Gateway. Returned by the reverse proxy, response body may be HTML and not JSON.--
503Service Unavailable. Returned by the reverse proxy, response body may be HTML and not JSON.--

Return type​

null (empty response body)

Authorization​

Basic, OAuth2 (scopes: read, write), ApiKeyBearer, asc_auth_key, Bearer, OpenId

HTTP request headers​

  • Content-Type: Not defined
  • Accept: application/json