-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbatch.request.lite.txt
41 lines (30 loc) · 1.17 KB
/
batch.request.lite.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
POST https://../_api/$batch HTTP/1.1
Host: tenant.sharepoint.com
Accept: */*
Origin: https://tenant.sharepoint.com
X-RequestDigest: 0x3F168[...]
Content-Type: multipart/mixed; boundary="batch_[GUID-1]"
--batch_[GUID-1]
Content-Type: multipart/mixed; boundary="changeset_[GUID-2]"
Host: tenant.sharepoint.com
Content-Length: 1271
Content-Transfer-Encoding: binary
--changeset_[GUID-2]
Content-Type: application/http
Content-Transfer-Encoding: binary
POST https://../_api/web/lists/getbytitle('Drivers')/items HTTP/1.1
Content-Type: application/json;odata=verbose
{"__metadata":{"type":"SP.Data.DriversListItem"},"Title":"Fernando Alonso","Team":"McLaren"}
--changeset_[GUID-2]
Content-Type: application/http
Content-Transfer-Encoding: binary
POST https://../_api/web/lists/getbytitle('Drivers')/items HTTP/1.1
Content-Type: application/json;odata=verbose
{"__metadata":{"type":"SP.Data.DriversListItem"},"Title":"Filipe Massa","Team":"Williams"}
--changeset_[GUID-2]--
--batch_[GUID-1]
Content-Type: application/http
Content-Transfer-Encoding: binary
GET https://../_api/web/lists/getbytitle('Drivers')/items?$orderby=Title HTTP/1.1
Accept: application/json;odata=verbose
--batch_[GUID-1]--