跳到主要内容

getRemoveProgress

TaskProgressResponseWrapper getRemoveProgress(userId)

GET /api/2.0/people/remove/progress/{userId}

Get the deletion progress

Returns the current state of the data deletion queued for the user with the ID specified in the request. A deletion must have been queued by POST api/2.0/people/remove/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. The call is read-only and is the polling operation of the deletion 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/remove/terminate to cancel a job that is still running.

Parameters​

NameInTypeDescriptionNotes
userIdpathUUID (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 codeDescriptionTypeResponse headers
200The state of the queued deletion, or an empty body when nothing is queued for the userTaskProgressResponseWrapperX-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
403No permissions to perform this action--
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​

TaskProgressResponseWrapper

Authorization​

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

HTTP request headers​

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