POST Method

In this article

    The POST HTTPS method in Veeam Backup for Microsoft Office 365 REST API can be used in two different ways:

    Post New Resource

    All requests creating a new resource require a request body. The body must contain properties for this resource. For example, to create a new backup repository, send a request of the following type:

    Request:

    POST https://<hostname>:4443/v5/BackupRepositories

     

    Request Header:

    Authorization: Bearer <Access-Token>

     

    Request Body:

    {

      "name": "ABC Support",

      "proxyId": "5a905bb5-9071-433c-9d2f-f805d4da2cf4",

      "retentionPeriodType": "Daily",

      "dailyRetentionPeriod": 14,

      "retentionFrequencyType": "Daily",

      "dailyTime": "08:00:00",

      "description": "",

      "dailyType": "Weekends",

      "path": "C:\\ABC_support",

      "attachUsedRepository": true

    }

    Post Action

    All requests performing an operation require a request body. The body must contain action properties. For example, to export backed-up mailbox items to a PST file, send a request of the following type:

    Request:

    POST https://hostname/v5/RestoreSessions/{id}/Organization/Mailboxes/{id}/items/action

     

    Request Header:

    Authorization: Bearer <Access-Token>

     

    Request Body:

    {

     "exporttoPst":

     {

       "contentKeywords": "support"

     }

    }

    In case of success, the POST HTTPS method returns the HTTP response code 201 Created or 200 OK. Depending on the resource, the method can return a response to an action specified in the response body.