Below is the code that I have:
List<PatchOperation> patchOperations = new List<PatchOperation>();
patchOperations.Add(PatchOperation.Replace("/endpointId", 100));
string id = "id1";
PartitionKey partitionKey = new PartitionKey("partitionkey1");
await _container.PatchItemAsync<Watermark>(id,
partitionKey,
patchOperations);
I am expecting to get endpointId
property to be replaced with 100.
However, I am faced with Message: {"Errors":["One of the specified inputs is invalid"]}
.
May I check which part am I missing or do I have to wait for patch private preview feature to be enabled for my cosmos db?