(PUT) /Jobs/{id}/ExcludedItems/{itemId}
Edits an excluded backup item for a backup job having a specified ID.
Request
To edit excluded items for a backup job, send the PUT HTTPS request to the URL of the /Jobs/{id}/ExcludedItems/{itemId} resource.
HTTPS Request
PUT https://<Backup-Office365>:4443/v3/Jobs/{id}/ExcludedItems/{itemId}  | 
Request Headers
The request header must contain the authorization token for the current logon session.
Request Body
The request body must contain the following properties:
Property  | Type  | Description  | 
Id  | string  | Specifies the ID of a backup job. For example, "id": "31a66931-b5d3-49f7-bba1-c46db49d3d14".  | 
ItemsToAppend  | string  | Specifies items that will be excluded for the backup job.  | 
Response
The server returns the following response to the client.
Response Codes
A successfully completed operation returns response code 200 OK.
Response Headers
The response to this request contains the following headers. The response may also include additional standard HTTPS headers.
Header  | Description  | 
Content-length  | The length of the response body.  | 
Content-type  | The media type and syntax of the request body message: application/json; charset=utf-8  | 
Response Body
None.
Example
The example below shows how to modify excluded items for a backup job.
Request: PUT https://support.east.local:4443/v3/Jobs/31a66931-b5d3-49f7-bba1-c46db49d3d14/ExcludedItems/2b788f9a-0c3e-4087-be1b-226a8b9f02cb9878f4b0-ec8d-4c58-bc91-277ef992c4cc82aceabf-9192-4049-a6df-1d35c1318714 
 Request Header: Authorization: Bearer <Access-Token> 
 Request Body: { "type": "User", "user": { "id": "2b788f9a-0c3e-4087-be1b-226a8b9f02cb9878f4b0-ec8d-4c58-bc91-277ef992c4cc", "displayName": "Admin", "name": "admin@company.onmicrosoft.com", "type": "User", "isBackedUp": false, "_links": { "self": { "href": "https://localhost:4443/v3/organizations/1ef78585-956d-485a-b70b-7a549f319111/users/2b788f9a-0c3e-4087-be1b-226a8b9f02cb9878f4b0-ec8d-4c58-bc91-277ef992c4cc" }, "organization": { "href": "https://localhost:4443/v3/organizations/1ef78585-956d-485a-b70b-7a549f319111" }, "onedrives": { "href": "https://localhost:4443/v3/organizations/1ef78585-956d-485a-b70b-7a549f319111/users/2b788f9a-0c3e-4087-be1b-226a8b9f02cb9878f4b0-ec8d-4c58-bc91-277ef992c4cc/onedrives" } } }, "mailbox": false, "oneDrive": true, "archiveMailbox": false, "site": true, "id": "2b788f9a-0c3e-4087-be1b-226a8b9f02cb9878f4b0-ec8d-4c58-bc91-277ef992c4cc82aceabf-9192-4049-a6df-1d35c1318714", "_links": { "job": { "href": "https://localhost:4443/v3/jobs/e04edb61-cb76-4b1f-a484-62aceb067a6c" }, "self": { "href": "https://localhost:4443/v3/jobs/e04edb61-cb76-4b1f-a484-62aceb067a6c/ExcludedItems /2b788f9a-0c3e-4087-be1b-226a8b9f02cb9878f4b0-ec8d-4c58-bc91-277ef992c4cc82aceabf-9192-4049-a6df-1d35c1318714" } } } 
 Response: 200 OK  |