getReassignProgress
TaskProgressResponseWrapper getReassignProgress(userId)
GET /api/2.0/people/reassign/progress/{userId}
Get the reassignment progress
Returns the current state of the data reassignment queued for the user with the ID specified in the request. A reassignment must have been queued by POST api/2.0/people/reassign/start first: when nothing is queued for that user the operation answers 200 with an empty body. The caller needs the permission to edit users, and only the portal owner may track a reassignment whose source user is a DocSpace administrator. The call is read-only and is the polling operation of the reassignment flow - repeat it until isCompleted is true, reading percentage for the 0 to 100 progress and error for the message left by a failed job. Use PUT api/2.0/people/reassign/terminate to cancel a job that is still running.
Parameters
| Name | In | Type | Description | Notes |
|---|---|---|---|---|
| userId | path | UUID (uuid) | The ID of the user the operation applies to, taken from the route. For a progress operation it has to be the same ID that was passed when the job was started. | [required] [example: 00000000-0000-0000-0000-000000000000] |
Responses
| Status code | Description | Type | Response headers |
|---|---|---|---|
| 200 | The state of the queued reassignment, or an empty body when nothing is queued for the user | TaskProgressResponseWrapper | X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset |
| 403 | No permissions to perform this action | - | - |
| 401 | Unauthorized | ErrorApiResponse | - |
| 429 | Too Many Requests. | ErrorApiResponse | Retry-After |
| 500 | Internal Server Error. | ErrorApiResponse | - |
| 400 | Bad Request. | ErrorApiResponse | - |
| 502 | Bad Gateway. Returned by the reverse proxy, response body may be HTML and not JSON. | - | - |
| 503 | Service Unavailable. Returned by the reverse proxy, response body may be HTML and not JSON. | - | - |
Return type
Authorization
Basic, OAuth2 (scopes: read, write), ApiKeyBearer, asc_auth_key, Bearer, OpenId
HTTP request headers
- Content-Type: Not defined
- Accept: application/json