POST Method

In this article

    The POST HTTPS method in Veeam Backup for Microsoft 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://abc.tech.local:4443/v6/BackupRepositories

     

    Request Header:

    Authorization: Bearer <Access-Token>

     

    Request Body:

    {

      "name": "ABC Support",

      "proxyId": "89e8c35e-6c73-4f46-a37d-b365e513f7c6",

      "retentionPeriodType": "Daily",

      "dailyRetentionPeriod": 14,

      "retentionFrequencyType": "Daily",

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

      "description": "",

      "retentionType": "ItemLevel",

      "dailyType": "Weekends",

      "attachUsedRepository": true,

      "objectStorageId": "62184b76-b935-42a9-868e-d55e83f052fa",
      "objectStorageCachePath": "C:\\ABC_Repo",
      "objectStorageEncryptionEnabled": true,
      "encryptionKeyId": "428fbab8-264a-4452-888f-9bb97775307b"

    }

    Post Action

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

    Request:

    POST https://abc.tech.local:4443/v6/RestoreSessions/{restoreSessionId}/organization/mailboxes/{mailboxId}/items/{itemId}/exportToPst

     

    Request Header:

    Authorization: Bearer <Access-Token>

     

    Request Body:

    {

       "enablePstSizeLimit": false,

       "items":  [

         {"id": "74685f6b-16aa-4a78-a44f-05526ce0ae30"},

         {"id": "70013a9e-c446-429d-aa78-9c8c20d9b814"}

       ]

    }

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