Sending OneDrive Folders
You can send backed-up OneDrive folders as attachments 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.
To send backed-up OneDrive folders as attachments in an email message, the request body must contain the following properties:
Accepts IDs of folders that you want to send as email attachments. For more information on how to get such IDs, see Getting OneDrive Folders.
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 OneDrive folders.
Authorization: Bearer <Access-Token>
"createdBy": "System Account",
"modifiedBy": "System Account",
"to" : "toUser@example.com",
"subject" : "Send document",
"text" : "Hello. It’s your folders!"