Hi @Bo Ellegård Andersen (Milestone Systems)
I have the same error, but with the PATCH method.
This is the stacktrace.
PATCH Unexpected statuscode BadRequest in 'http://XXX/API/rest/v1/cameras/fb151123-1ddb-43a7-8539-59b5f2acfbee' - Property cannot be changed: LastModified (VideoOS.Platform)
------------------------------
Stack trace:
in VideoOS.Platform.Proxy.RestApi.RestApiClient.<PatchRequest>d__40.MoveNext()
--- Fine traccia dello stack da posizione precedente dove è stata generata l'eccezione ---
in System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
in System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
in VideoOS.Platform.Proxy.RestApi.RestApiClient.Patch(String resourceType, String id, String json)
in VideoOS.Platform.Proxy.RestApi.RestApiClientDecorator.CallWithRetry[TResult](Func`2 call)
in VideoOS.Platform.Proxy.RestApi.RestApiClientDecorator.SetItem(ConfigurationItem item)
in VideoOS.Platform.Proxy.ConfigApi.ConfigurationApiItemWrapper.Save()
As suggested by @Frediano Maria Di Carlo (SecurSys S.a.s.), setting
Configuration.Instance.ConfigurationApiManager.UseRestApiWhenAvailable = false;
makes everything work.
I use XCO 2025R3 and the nuget 25.2.3 package.