跳到主要内容

getReportFolderHistory

DocumentBuilderTaskWrapper getReportFolderHistory(folderId)

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

Get the folder history report generation status

Reports how far the history report of a folder has got, and is the operation to poll after POST api/2.0/files/folder/{folderId}/log/report has queued one. percentage climbs to 100, isCompleted turns true when the job is over however it ended, error carries the reason when it failed, and resultFileId, resultFileName and resultFileUrl name the file that was saved in the caller's My documents. An empty answer means there is no report for this folder and caller, either because none was started or because a finished one has already been picked up by an earlier poll. 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. The call is read-only, and each caller sees only their own report.

Parameters​

NameInTypeDescriptionNotes
folderIdpathInteger (int32)The folder whose history report is being polled. It is the folder that was passed to the operation that started the report.[required]

Responses​

Status codeDescriptionTypeResponse headers
200The state of the report task, or nothing when there is noneDocumentBuilderTaskWrapperX-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​

DocumentBuilderTaskWrapper

Authorization​

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

HTTP request headers​

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