Skip to content

Commit 6aa58be

Browse files
committed
Fixed itemAt to use GET
1 parent d884a07 commit 6aa58be

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

api-reference/beta/api/tablerowcollection_itemat.md

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ The following **scopes** are required to execute this API:
66
### HTTP request
77
<!-- { "blockType": "ignored" } -->
88
```http
9-
POST /workbook/tables(<id|name>)/rows/ItemAt
10-
POST /workbook/worksheets(<id|name>)/tables(<id|name>)/rows/ItemAt
9+
GET /workbook/tables(<id|name>)/rows/ItemAt(index=n)
10+
GET /workbook/worksheets(<id|name>)/tables(<id|name>)/rows/ItemAt(index=n)
1111
1212
```
1313
### Request headers
@@ -29,20 +29,13 @@ If successful, this method returns `200, OK` response code and [TableRow](../res
2929
### Example
3030
Here is an example of how to call this API.
3131
##### Request
32-
Here is an example of the request.
32+
Here is an example of the request. Returns 1st row.
3333
<!-- {
3434
"blockType": "request",
3535
"name": "tablerowcollection_itemat"
3636
}-->
3737
```http
38-
POST https://graph.microsoft.com/beta/me/drive/items/<id>/workbook/tables(<id|name>)/rows/ItemAt
39-
Content-type: application/json
40-
Content-length: 20
41-
42-
{
43-
"index": {
44-
}
45-
}
38+
GET https://graph.microsoft.com/beta/me/drive/items/<id>/workbook/tables(<id|name>)/rows/ItemAt(0)
4639
```
4740

4841
##### Response
@@ -71,4 +64,4 @@ Content-length: 45
7164
"keywords": "",
7265
"section": "documentation",
7366
"tocPath": ""
74-
}-->
67+
}-->

0 commit comments

Comments
 (0)