Skip to main content

getUserTypeUpdateProgress

TaskProgressResponseWrapper getUserTypeUpdateProgress(userId)

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

Get the user type change progress

Returns the current state of the user type change queued for the user with the ID specified in the request. A conversion must have been queued by POST api/2.0/people/type first: when nothing is queued for that user the operation answers 200 with an empty body. The caller needs the permission to add and remove users. The call is read-only and is the polling operation of this 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/type/terminate to cancel a conversion 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 user type change, 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