Skip to content

Commit 389d0b3

Browse files
Merge pull request SharePoint#9807 from GiorgioRen/patch-1
Update get-to-know-the-sharepoint-rest-service.md
2 parents d0bbadd + 2485d02 commit 389d0b3

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

docs/sp-add-ins/get-to-know-the-sharepoint-rest-service.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,25 @@ The following table contains typical REST endpoint URL examples to get you start
122122
```json
123123
{
124124
"__metadata": {
125-
"type": "SP.Data.listname.ListItem"
125+
"type": "SP.Data.listnameListItem"
126126
},
127127
"Title": "MyItem"
128128
}
129129
```
130130

131131
In the above JSON, replace listname with the name of your SharePoint list by omitting the spaces.
132132

133+
For example, if your SharePoint list name is "My Awesome List" the resulting json should be:
134+
135+
```json
136+
{
137+
"__metadata": {
138+
"type": "SP.Data.MyAwesomeListListItem"
139+
},
140+
"Title": "MyItem"
141+
}
142+
```
143+
133144
## Batch job support
134145

135146
The SharePoint Online (and on-premises SharePoint 2016 or later) REST service supports combining multiple requests into a single call to the service by using the OData `$batch` query option. For details and links to code samples, see [Make batch requests with the REST APIs](make-batch-requests-with-the-rest-apis.md).

0 commit comments

Comments
 (0)