跳到主要内容

terminateReassign

TaskProgressResponseWrapper terminateReassign(TerminateRequestDto)

PUT /api/2.0/people/reassign/terminate

Terminate the data reassignment

Cancels the data reassignment queued for the user with the ID specified in the request. The caller needs the permission to edit users, and only the portal owner may cancel a reassignment whose source user is a DocSpace administrator. The operation is idempotent: when nothing is queued for that user it answers 200 with an empty body, and repeating it on an already cancelled job changes nothing. Cancelling removes the job from the queue and does not undo the transfers it has already made, and a cancelled job cannot be resumed - start a new one through POST api/2.0/people/reassign/start. The returned progress reports status as Canceled and isCompleted as true.

Parameters​

NameInTypeDescriptionNotes
TerminateRequestDtobodyTerminateRequestDto[optional]

Responses​

Status codeDescriptionTypeResponse headers
200The state of the cancelled reassignment, or an empty body when nothing was queued for the userTaskProgressResponseWrapperX-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
400The request body cannot be read or has no userId--
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