跳到主要内容

getRoomTemplateCreatingStatus

RoomTemplateStatusWrapper getRoomTemplateCreatingStatus()

GET /api/2.0/files/roomtemplate/status

Get room template creation status

Reports the state of the room template creation the caller started with POST api/2.0/files/roomtemplate. The record is private to the account that started the job: work started by another member is never reported, and a caller who has started none gets an empty response instead of an object. Poll until isCompleted turns true, then take the identifier of the finished template from templateId; a non-empty error means the job failed and no template was kept. Treat isCompleted as the completion signal rather than progress, which the background job only sets to 100 once the work is over. The record outlives the job, so a finished operation can be read again and keeps returning the same identifier until the caller starts another template creation, which replaces it. The call only reads state and needs no access to the source room or to the template, but it does require an authenticated caller.

Parameters​

This endpoint does not need any parameter.

Responses​

Status codeDescriptionTypeResponse headers
200The state of the caller's latest template creation, or an empty body when this account has started noneRoomTemplateStatusWrapperX-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​

RoomTemplateStatusWrapper

Authorization​

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

HTTP request headers​

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