Contracts

Move every document of a contract under another key

Changed on

Re-keys every document of the contract to into_key (created when no contract has it yet) and deletes the emptied contract. The keys are hand-set, so re-reading keeps them. The merge is recorded as a key rule, so later documents filed under the old key go to the target key, and an open decision on the old contract carries over to the target when the target has none.

post/v1/contracts/{id}/merge

Request

  • Base URL
    https://api.talonic.com
  • Auth
    HTTP bearer

Path parameters

id, string uuid required

Request body

object required
into_key, string required
note, string

Response

How many documents moved and the resulting contract.

object required
moved, integer
contract, ContractsContract nullable

One contract, folded from its documents.

Changes