Skip to main content

startRemove

TaskProgressResponseWrapper startRemove(TerminateRequestDto)

POST /api/2.0/people/remove/start

Start the data deletion

Queues an asynchronous job that erases the data of the user with the ID specified in the request. The account must already have the Terminated status - disable it through PUT api/2.0/people/status/{status} first - and it cannot be the portal owner or the caller. The caller needs the permission to edit users, has to be a DocSpace admin to erase the data of a room admin, and has to be the portal owner to erase the data of another DocSpace admin. The erasure does not finish within this call: poll GET api/2.0/people/remove/progress/{userId} with the same user ID until isCompleted is true, and cancel it through PUT api/2.0/people/remove/terminate. This operation destroys the data and cannot be undone; to keep the rooms and the shared files of the account instead, transfer them first through POST api/2.0/people/reassign/start. An unknown ID and a rejected precondition both answer 400 and name the ID they rejected.

Parameters​

NameInTypeDescriptionNotes
TerminateRequestDtobodyTerminateRequestDto[optional]

Responses​

Status codeDescriptionTypeResponse headers
200The state of the queued deletionTaskProgressResponseWrapperX-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
400The request body cannot be read or has no userId, no user has the specified ID, or the account is the portal owner, the caller, or is not disabled--
403No permissions to perform this action--
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​

TaskProgressResponseWrapper

Authorization​

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

HTTP request headers​

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