sharepoint graph api patch with nested json

Copper Contributor

o update a 'simple' field item in sharepoint we can patch using the graph api: https://graph.microsoft.com/v1.0/sites/{site-id}/lists/{list-id}/items/{item-id}/fields using

{ "td_documentLookupId":"22" }

But how to perform an update if the required structure is a nested json`enter code here:

{         
   "td_documentLookupId":"22",
   "td_object":{
                "LookupId":7,
                "LookupValue":"title"
                }
}

This returns an invalid request. Any help is appreciated!

0 Replies