跳到主要内容

getRoomIndexExport

DocumentBuilderTaskWrapper getRoomIndexExport()

GET /api/2.0/files/rooms/indexexport

Get the room index export

Returns the state of the index export of the calling account, the job started by POST api/2.0/files/rooms/{id}/indexexport. The record is not addressed by room: there is at most one per account, and the answer describes the latest export whichever room it was started for. When the account has never started one, or its record was cancelled, the body is null rather than an error, so null is the normal way of saying that there is nothing to report. While the job runs, percentage moves in coarse steps instead of smoothly, which makes it a rough hint rather than a measure of the remaining time; isCompleted is the field to wait on, and it is also set for a job that failed or was cancelled, so read status to tell the outcomes apart and error for the message. After a successful build, resultFileId, resultFileName and resultFileUrl point to the spreadsheet saved in the My documents section of the caller. The record survives completion and is replaced only by the next export.

Parameters​

This endpoint does not need any parameter.

Responses​

Status codeDescriptionTypeResponse headers
200The state of the export, or null when the account has noneDocumentBuilderTaskWrapperX-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
401UnauthorizedErrorApiResponse-
429Too Many Requests.ErrorApiResponseRetry-After
500Internal Server Error.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