Digi Tech SDK icon

Digi Tech SDK

Interact with the Digi API via the official Digi Tech SDK

Record → Update

AI-generated

Summary

Update an existing record identified by Record ID with specified fields provided as a JSON object.

Inputs

  • Record ID (required) — The unique identifier of the record to update.
  • Update Data (JSON) (required) — A JSON object containing the fields and values to update on the record. For example, {"vouchers": {"type": "document", "status": "pending", "data": {"documentType": "ID", "documentNumber": "12345678"}}}.

Output shape

a list of JSON objects representing the updated record data for each input item.

Each updated record is returned as a JSON object in the output array, paired with the corresponding input item. If the update fails and "Continue On Fail" is enabled, an error message is returned instead for that item.

Examples

Example 1: Update record with ID and new voucher status

Set Record ID to the target record's ID, and Update Data to a JSON object including updated voucher information as shown in examples.

Links

Discussion