In order to set a value for an Item property, the client must send a PUT request to the Item property
reference:
PUT host/.../$ref
Prefer: return=minimal
{
"@odata.id": "">host/.../User(‘C542FC153AE647A59CD6F6967295EF6B’)"
}
Here is how I am trying to do this for the Document File relationship:
PUT host/.../Document File('7E15...F5E9')/related_id/$ref
{
"@odata.id": "">host/.../File('0284...3BA0')"
}
This results in an Aras.Server.Core.ItemIsNotLockedException. I also tried adding the @aras.action:lock to the JSON and this gave the same error. Is this the correct way to modify the Document File relationship?