Hi,
Thank you for your responses :)
So I tried changing the headers to nometadata, still got this error:
{"odata.error":{"code":"-1, Microsoft.SharePoint.Client.InvalidClientQueryException","message":{"lang":"en-US","value":"The property '__metadata' does not exist on type 'SP.Data.Telco_x0020_HSE_x0020_DocumentsItem'. Make sure to only use property names that are defined by the type."}}}
removed the metadata from the top of the body, got this error:
{"odata.error":{"code":"-1, Microsoft.SharePoint.Client.InvalidClientQueryException","message":{"lang":"en-US","value":"An unexpected 'StartObject' node was found when reading from the JSON reader. A 'StartArray' node was expected."}}}
I then tried using the Update file properties and putting the item details into the 'item' field and it times out with this error:
"innerError": {
"status": 500,
"message": "Cannot deserialize the current JSON object (e.g. {\"name\":\"value\"}) into type 'System.Collections.Generic.IEnumerable`1[Microsoft.SharePoint.Connector.SPListExpandedReference]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.\r\nTo fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.\r\nPath 'Value', line 2, position 10.\r\nclientRequestId: f49a8458-fa59-4407-861d-9eda036e4738\r\nserviceRequestId: 5879a9a1-2009-5000-4252-56a9c9d19f1c"
}
That current outputs in the value is a compose of a select, ive tried wrapping it in json and that fails as well.
I need the site name and library to be dynamic, this is what I mean by going around in circles. I can get everything to accept in the http request but the moment i add the choice column I get errors, same in the update file properties