I am trying to update a value on a list item (type is Hyperlink or Picture). When performing GET requests, the data return fine, but when I try to create an item or udpate it with the value I end up with following:
{
"error": {
"code": "-1, Microsoft.SharePoint.Client.InvalidClientQueryException",
"message": "A value without a type name was found and no expected type is available. When the model is specified, each value in the payload must have a type which can be either specified in the payload, explicitly by the caller or implicitly inferred from the parent value.",
"innerError": {
"request-id": "d12dfb12-a068-4621-9f27-d284e4635060",
"date": "2019-05-28T08:52:51"
}
}
}
The POST/PATCH request goes to:
https://graph.microsoft.com/v1.0/sites/<siteid>/lists/<listid>/items/
and contains a simple JSON (in case of PATCH):
{
"WebPage":
{
"Description": "Microsoft Graph",
"Url": "http://graph.microsoft.com"
}
}
Any idea what I am doing wrong? I tried with .NET SDK and Graph Explorer and it ends with the same error...