Assign Travel Document To Trip
travel_document_assign_tripMove or assign a travel document (insurance, visa, passport scan, voucher) to another trip the user OWNS, or back to the general library. Provide document_id from a documents listing and trip_id from trips_list. Omit trip_id (or pass null) to move the document to the library. Only trips the user owns are valid targets. The document's linked files move with it; a file also attached to another document is left in place and reported. If more than one document could match the request, confirm which one before moving. Returns the document, its previous and new trip, and how many linked files were re-pointed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trip_id | No | Target trip id owned by the user; omit or null to unassign the document to the library. | |
| document_id | Yes | Id of the travel document to move. |