跳到主要内容

getExternalDbSyncStatus

ExternalDbSyncTaskWrapper getExternalDbSyncStatus(id)

GET /api/2.0/files/rooms/{id}/externaldbsync

Get external DB sync status

Returns the record of the external database export job of a form filling room, or an empty body when the room has no job at all. The room must be a form filling room and the caller must be able to edit it, otherwise the call is refused; an unknown room is answered with 404. This is the polling target of POST api/2.0/files/rooms/{id}/externaldbsync: repeat it until isCompleted is true, and then read forms, which lists one entry per original form with its own success and error and is empty while the job is still running. percentage advances as forms are processed, status distinguishes a job that is queued, running, finished or failed, and error carries the message of a job that stopped as a whole. The record belongs to the room rather than to the account that started the job, so any member who can edit the room sees the same answer. The call changes nothing and is safe to repeat.

Parameters​

NameInTypeDescriptionNotes
idpathInteger (int32)The room to act on, named by the identifier that GET api/2.0/files/rooms reports for it. Rooms kept in the portal itself use whole numbers, while a room backed by a connected third-party account uses the string form of the same listing.[required] [example: 1]

Responses​

Status codeDescriptionTypeResponse headers
200The synchronization job record, or an empty body when the room has no jobExternalDbSyncTaskWrapperX-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
403The room is not a form filling room, or the caller cannot edit it--
404No folder with this ID exists--
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​

ExternalDbSyncTaskWrapper

Authorization​

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

HTTP request headers​

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