vendor/heap-account-properties · vendor documented
Heap account properties need app_id and an account id
app_id is the environment ID. Send account_id for one account, or accounts[] for a bulk update, with account_id on every row. Track stays vendor/heap-track. Add user properties stays vendor/heap-user-properties.
A bulk row still needs account_id
Heap documents account_id on a single update and accounts[].account_id on every bulk row.
Rule: vendor.heap-account-properties.body.accounts[].account_id.missing
What this pack matches
Rules
Codes are stable. A finding in CI, MCP, or the playground lands on the same id.
| Field | Required | What it checks | Rule ids | Source |
|---|---|---|---|---|
app_id |
required | It is the Heap environment ID. Heap documents it as required. Fix: Set `app_id` to the environment ID from Heap Projects. | vendor.heap-account-properties.body.app_id.missingvendor.heap-account-properties.body.app_id.empty |
docs |
account_id |
optional | It is the account identifier on a single-account update. Heap documents `account_id` for single updates, and `accounts[]` for bulk. Fix: Send `account_id` for one account, or an `accounts` array for bulk updates. | vendor.heap-account-properties.body.account_id.empty |
docs |
accounts[].account_id |
required | It is the account identifier on a bulk row. Heap documents each `accounts[]` object as having `account_id`. Fix: Set `accounts[].account_id` on every bulk row. | vendor.heap-account-properties.body.accounts[].account_id.missingvendor.heap-account-properties.body.accounts[].account_id.empty |
docs |
Validate a payload
pixellint validate json @payload.json --rulepack vendor/heap-account-properties
Try this failing payload in the playground. Heap add account properties missing app_id.
{"account_id":"acct-10024"}
cargo install pixellint
·
npm install pixellint