Sending OneDrive Documents
You can send a backed-up OneDrive document with the specified ID as an attachment in an email message.
To be able to send items as attachments, you must specify the Veeam Explorer for Microsoft OneDrive for Business email settings by sending the PUT HTTPS request to the /VEODEmailSettings resource URL. For more information, see Editing Notification Settings.
The request header must contain an authorization token of the current session.
The following parameters must be specified in the URL of the request:
Specifies the identification number of the restore session. For more information on how to get this parameter, see Getting Restore Sessions.
Specifies the identification number of OneDrive. For more information on how to get this parameter, see Getting OneDrive Items.
Specifies the identification number of the OneDrive document. For more information on how to get this parameter, see Getting OneDrive Documents.
To send a backed-up OneDrive document as an attachment in an email message, the request body must contain the following properties:
Specifies the email address from which the attachments will be sent.
Specifies the email address to which the attachments will be sent.
Specifies the subject of the email message used for sending the attachments.
Specifies the body of the email message used for sending the attachments.
"subject": "Support Ticket",
"text": "Please, find attached the files you requested"
The server returns the following response to the client.
A successfully completed operation returns a response code 200 OK.
The response to this request contains the following headers. The response may also include additional standard HTTPS headers.
The length of the response body.
The media type and syntax of the response body message for the requests with the export and save actions: application/octet-stream.
The media type and syntax of the response body message for the requests with the restore and send actions: null.
The following request sends a OneDrive document.
Authorization: Bearer <Access-Token>
"to" : "toUser@example.com",
"subject" : "Send document",
"text" : "Hello. It’s your document!"