Skip to content

Commit a037617

Browse files
nanddeepnVesaJuvonen
authored andcommitted
Corrected Type for adding data (SharePoint#4185)
On the page https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/get-to-know-the-sharepoint-rest-service Corrected Type for adding data in a code that adds an item to a list sample data.
1 parent 6842653 commit a037617

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,14 @@ 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.listname.ListItem'
126126
},
127127
'Title': 'MyItem'
128128
}
129129
```
130130

131+
In the above JSON, replace listname with the name of your SharePoint list by omitting the spaces.
132+
131133
<a name="batch"> </a>
132134

133135
## Batch job support

0 commit comments

Comments
 (0)