Sending SharePoint Folders
You can send a backed-up SharePoint library folder with the specified ID as an attachment in an email message.
To be able to send library folders as attachments, you must specify the Veeam Explorer for Microsoft SharePoint email settings by sending the PUT HTTPS request to the /VESPEmailSettings 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 the SharePoint site. For more information on how to get this parameter, see Getting Organization SharePoint Sites.
Specifies the identification number of the folder. For more information on how to get this parameter, see Getting SharePoint Folders.
To send a SharePoint library folder as an attachment in an email message, the request body must contain the following properties:
If set to true, indicates that Veeam Backup for Microsoft 365 does not check items and skips those items that cannot be sent.
Specifies the email address from which a library folder will be sent.
Specifies the email address to which a library folder will be sent.
Specifies the subject of the email message used for sending a library folder.
Specifies the body of the email message used for sending a library folder.
"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 example shows how to send a backed-up SharePoint folder with the specified ID.
Authorization: Bearer <Access-Token>
"to" : "toUser@example.com",
"subject" : "Send document",
"text" : "Hello. It’s your document!"