Hi Pierre,<br>
<br>
Check-Out to document tray should be:<br>
<br>
<strong>PUT </strong> <code>{{ServerUrl}}/{{Platform}}</code>/FileCabinets/<code>{{FileCabinetId}}</code>/Operations/ProcessDocumentAction?docId=<code>{{DocumentId}}</code><br>
 
<pre class="linenums prettyprint">{
"DocumentAction": "CheckOut",
"DocumentActionParameters": {
"$type": "CheckOutActionParameters",
"FileCabinetId": "b_99f4b29d-a2b0-4196-a4a6-67cb74fd865c"
}
}</pre>
<br>
<br>
Check-In from document tray should be:<br>
<br>
<strong>PUT </strong> <code>{{ServerUrl}}/{{Platform}}</code>/FileCabinets/<code>{{DocumentTrayId}}</code>/Operations/ProcessDocumentAction?docId=<code>{{DocumentId}}</code><br>
 
<pre class="linenums prettyprint">{
"DocumentAction": "CheckIn",
"DocumentActionParameters": {
"$type": "CheckInActionParameters",
"Comments": "",
"DocumentVersion": {
"Major": 2,
"Minor": 0
}
}
}</pre>
Note that the DocIDs are different for Check-Out and Check-In.<br>
<br>
<br>
Merging of sections is called "staple" (1 section) and should be:<br>
<br>
<strong>POST </strong> <code>{{ServerUrl}}/{{Platform}}</code>/FileCabinets/<code>{{DocumentTrayId}}</code>/Operations/ContentMerge<br>
 
<pre class="linenums prettyprint">{
"Documents": [
221,
220
],
"Operation": "Staple",
"Force": true
}</pre>
Note that stapling is only supported in document trays. This ensures that documents are not lost in the filing cabinet under any circumstances.<br>
Also, if the documents are already "clipped" (2 sections), you must first unclip and then staple.<br>
<br>
<strong>POST </strong> <code>{{ServerUrl}}/{{Platform}}</code>/FileCabinets<code>/{{DocumentTrayId}}</code>/Operations/ContentDivide?docId=<code>{{DocumentId}}</code><br>
 
<pre class="linenums prettyprint">{
"Operation": "Unclip"
}</pre>
<br>
So the procedure would probably be:
<ul>
<li>copy the document to a document tray (Transfer)</li>
<li>unclip</li>
<li>staple</li>
<li>store</li>
<li>delete the old document in file cabinet</li>
</ul>
<br>
<br>
Viele Grüße / With best regards,<br>
--<br>
Gerardo Lisanti<br>
Product Manager  |  DocuWare GmbH