I have an entity with a composite primary key, and I can retrieve a single instance of it using:
GET https://example.com/service/Contacts(Foo=3,Bar=18)
How can I update an instance of it? I tried a PATCH using the same address:
PATCH https://example.com/service/Contacts(Foo=3,Bar=18)
But I get the next error:
{
"error" : {
"code" : "",
"message" : "The request is invalid.",
"innererror" : {
"message" : "key : Expected literal type token but found token 'Foo'.\r\n",
"type" : "",
"stacktrace" : ""
}
}
}
What does this error mean?
I also tried without the property names, but I get another error:
PATCH https://example.com/service/Contacts(3,18)
Cannot create an abstract class. Description: An unhandled exception occurred during the execution of the current web request. Please review the stacktrace for more information about the error and where it originated in the code.
Any idea how can I do a PATCH in this case?
Thank you.