attribute-mappings

Attribute Mappings Row Counts

Lazy per-mapping contact_attributes row counts for the page.

Split out of GET /attribute-mappings, which used to count inline: counting a mapping's owned rows is a full table scan for large orgs (Pingo: ~60M rows) and blocked every list render. The page loads the mappings first, then calls this with the loaded ids to fill the "Rows" column. Read-only POST (the id list is the request body) — no audit log, no side effects. Declared above /{mapping_id} so the static path isn't shadowed by the id route.

post/attribute-mappings/row-counts

Request

  • Base URL: https://api.usepolymorph.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.usepolymorph.com/attribute-mappings/row-counts
  • Auth: none declared

Request body

mapping_idsstring[] required

Response

Successful Response

countsobject required

Changes

No recorded changes to this operation across all 1 revision of this API.