Steps done using Graph Explorer - https://developer.microsoft.com/en-us/graph/graph-explorer
- Create a new non-persistent session for the workbook
POST
https://graph.microsoft.com/v1.0/me/drive/items/{itemId}/workbook/createSession
{
"persistChanges": false
}
- Use the session as HTTP header (in all the subsequent calls)
"workbook-session-id": "<non-persistent-session-id>"
- Send Input values
PATCH
https://graph.microsoft.com/v1.0/me/drive/items/{itemId}/workbook/worksheets('InputOutput')/range(address='C3')
{
"values" : [["230"]]
}
- Read the output values
GET
https://graph.microsoft.com/v1.0/me/drive/items/{itemId}/workbook/worksheets('InputOutput')/range(address='C9:C11')