Skip to content
HALOWERK

File Formats and Conversion

snapshot minimum common row moves

JSON record ordering returns the minimum number of moves needed to transform the relative order of shared keys. Use it when an agent needs to distinguish row movement from data additions.

POST https://format.halowerk.com/v1/snapshot-minimum-common-row-moves

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
keystringYes
beforearrayYes
afterarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "key": {
      "type": "string",
      "maxLength": 65,
      "minLength": 1
    },
    "before": {
      "type": "array",
      "items": {
        "type": "object",
        "maxProperties": 32
      },
      "maxItems": 180,
      "minItems": 0
    },
    "after": {
      "type": "array",
      "items": {
        "type": "object",
        "maxProperties": 32
      },
      "maxItems": 180,
      "minItems": 0
    }
  },
  "required": [
    "key",
    "before",
    "after"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "key": "agency",
  "before": [
    {
      "agency": "SEC",
      "cash": 3
    },
    {
      "agency": "SBA",
      "cash": 131
    },
    {
      "agency": "USPS",
      "cash": 291
    }
  ],
  "after": [
    {
      "agency": "USPS",
      "cash": 325
    },
    {
      "agency": "SBA",
      "cash": 93
    },
    {
      "agency": "SEC",
      "cash": 11
    }
  ]
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-19 UTC.

More endpoints in this hub

All endpoints in this hub โ†’