For the complete documentation index, see llms.txt. This page is also available as Markdown.

Investigation

Kick CLI scripts for checking changes: review recent category edits, and inspect a transaction before applying a confirmed update.

Use these scripts to see what changed before you change anything else. The update script stops at a preview until you rerun it with the confirmation token.

Review recent category changes (read)

To see what changed on transactions before you adjust anything else, list recent activity filtered to category updates.

The Script

#!/bin/bash
# review-category-activity.sh

WORKSPACE_ID="<workspace-id>"

kick --workspace "$WORKSPACE_ID" activity list \
  --resource-type transaction \
  --changed-fields categoryId \
  --limit 25 \
  --output json | jq .

How to Customize

  • Add --entity-ids when you only care about one entity

  • Pipe to a file for audit records: > category-activity-$(date +%Y%m%d).json

What It Outputs

  • JSON activity rows showing recent transaction category changes

Inspect a transaction before updating it (read, then write)

To review one transaction and apply a change, fetch it first. Updates require a payload file and preview confirmation. The first run only previews the update; rerun the script with the preview's confirmationToken to apply it.

The Script

#!/bin/bash
# inspect-and-update-transaction.sh
# First run: ./inspect-and-update-transaction.sh
# Second run: ./inspect-and-update-transaction.sh <confirmation-token>

WORKSPACE_ID="<workspace-id>"
TRANSACTION_ID=12345
PAYLOAD_FILE="transaction-update.json"
CONFIRMATION_TOKEN="${1:-}"

echo "Current transaction (read):"
kick --workspace "$WORKSPACE_ID" transactions get "$TRANSACTION_ID" --output json | jq .

if [ ! -f "$PAYLOAD_FILE" ]; then
  echo "Create $PAYLOAD_FILE with the fields you want to change, then re-run."
  exit 1
fi

if [ -z "$CONFIRMATION_TOKEN" ]; then
  echo ""
  echo "Preview update (no change yet):"
  kick --workspace "$WORKSPACE_ID" transactions update \
    --transaction-id "$TRANSACTION_ID" \
    --payload-file "$PAYLOAD_FILE" \
    --output json | jq .
  echo "To apply it, rerun: $0 <confirmationToken from the preview>"
else
  echo ""
  echo "Apply update (write):"
  kick --workspace "$WORKSPACE_ID" transactions update \
    --transaction-id "$TRANSACTION_ID" \
    --payload-file "$PAYLOAD_FILE" \
    --confirmation-token "$CONFIRMATION_TOKEN" \
    --output json | jq .
fi

How to Customize

  • Put the fields to change in the payload file, for example {"memo": "Owner reviewed"}

  • The token expires 45 minutes after the preview and only confirms the same transaction and payload. If you edit the payload file, run the preview again

  • Check the change afterward with kick --workspace "$WORKSPACE_ID" activity list --resource-type transaction --resource-id "$TRANSACTION_ID"

What It Outputs

  • Full transaction JSON from the read step

  • On the first run, preview JSON with preview.confirmationToken (nothing changes yet)

  • On the second run, the result of the applied update

Last updated

Was this helpful?