cURL
curl --request PUT \ --url https://aodocs.altirnao.com/api/document/v1/drive/{driveId}/discardcheckout \ --header 'Authorization: Bearer <token>'
This response has no body data.
Discards the check-out of a document via the Drive ID of one of its attachment (deletes the draft version to come back to the main version as current version).
The access token received from the authorization server in the OAuth 2.0 flow.
The ID of the file
The security code
The G Suite domain