When setting evidence lock using SDK with Custom or Infinite retention option , we get success and lock is put. But same when called using API POST method we are getting error - BadRequest — { “error” : { “httpCode” : 400, “details” : [ { “property” : “retentionUnits”, “errorText” : “RetentionUnits must be 0 or positive” } ] } }
Please start by testing whether what you experience is the same bug as discovered in this topic: evidenceLocks using REST API
If it is not the same issue, or if the workaround mentioned there does not help, I would like to try reproducing it.
Please share an example of the request you are making (request body and endpoint), so I can test with the same parameters and have the best chance of reproducing the issue.
I have reproduced and seen the same behavior. I have asked Milestone Development. It might be we do something wrong or it might be a bug. I will let you know what we find.
We have determined, together with Milestone Support and Development, that the user associated with an Evidence Lock should always be the currently logged-in user. Allowing the user to be specified as a parameter when creating Evidence Locks is a mistake. We will correct the documentation accordingly.