Move a document to a sibling container
move_documentDeletes data: moves one document to another container shipment of the same group, as the person who connected this app, and records it in the organization's audit log. Use it when a certificate or invoice landed on the wrong container's shipment (a check says it does not name its container) and the user says which container it is for. The target must be a sibling of the document's shipment (same group, same organization): ask search_shipments for it. Everything the document owns moves with it, its packing list is deleted here and built again on the target from the same reading, so a correction a person made by hand to its pallets or lines may not carry over, and both shipments' checks run again. Refused, with nothing changed, when boxes are pre-allocated on the document's packing list (delete those pre-allocations first), when either shipment has arrived, or when the document is shared across the containers. Safe to repeat: moving a document to the shipment it is already on changes nothing. Answers with the document, now on the target.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"document_id": "<document_id>",
"target_shipment_id": "<target_shipment_id>"
},
"name": "move_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | A document id such as "doc_45", as returned by list_documents. | |
| target_shipment_id | Yes | The sibling shipment to move it to, such as "shp_124", as returned by search_shipments. |