POST api/Documents/{id}/UndoCheckout

Removes the checkout status from a document.

Request

Parameters

Name Description Default
id Document number (unique ID).

Response

Body

Content Type: application/xml or application/json
Empty response if successful or an error message.

XML JSON
<Response>                     
  <Message>string</Message>    <!--Error message--> 
</Response>                    
{                        
   "Message": "string"   // Error message
}                        
                         

Status Codes

Code Condition
204 No ContentThe operation completed successfully.
400 Bad RequestInvalid document number.
401 Unauthorized Access token is invalid, expired or not specified.
403 ForbiddenUser does not have permission to check the document in/out.
404 Not FoundDocument not found.
406 Not Acceptable Content type specified in the Accept header isn't supported.
409 ConflictCheckout status could not be discarded.
500 Internal Server Error An internal error occurred.

Remarks

If checkout status cannot be removed from a document, it may not be checked out by the current user.