Sending SharePoint Libraries
You can send a backed-up SharePoint document library with the specified ID as an attachment in an email message.
To be able to send document libraries 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 SharePoint document library. For more information on how to get this parameter, see Getting SharePoint Libraries.
To send a SharePoint document library as an attachment in an email message, the request body must contain the following properties:
Specifies the email address from which a restored library will be sent.
Specifies the email address to which a restored library will be sent.
Specifies the subject of the email message used for sending a restored library.
Specifies the body of the email message used for sending a restored library.
"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 the specified SharePoint document library as an email attachment.
Authorization: Bearer <Access-Token>
"to" : "toUser@example.com",
"subject" : "Send document",
"text" : "Hello. It’s your document!"