I am working with the IBM Connection APIs and I didn't find anything about the question of locking a file programmatically in the documentation. There is no way to do it?
I have seen that when a file is locked the metadata is changed:
<td:lock type="HARD">
When it is locked (manually) we have something like that:
<td:lock type="HARD">
<td:owner>
<name>Jane Doe</name>
<snx:userid>20[...]6E</snx:userid>
<email>heloise.chauvel@chanel-corp.com</email>
<snx:userState>active</snx:userState>
</td:owner>
<td:lockTime>2017-05-17T13:05:03.990Z</td:lockTime>
</td:lock>
So I could programmatically modify this metadata but is there an easier way to do it?
It is not possible to lock a file programmatically. There is no option in the API documentation and it is unauthorized to submit new metadata like I was explaining in my question.
So what I decided to do was to add a tag "locked" programmatically. No other solution.