ackDB

Edit a company row's field values

Directly edit the values a company row shows (#238) - a batch { "<fieldKey>": <value>, … }. The server routes each field by its catalog group: a TRAIT upserts entity_traits (op:set, the same row POST /ingest writes, stamped source="manual", validated against the trait definition); the name attribute updates the entity. Computed/derived columns (activity, event_count, sources, last_active, revenue, credits, source_names, domain, created_at, …), event columns (append-only), and the internal status lifecycle enum are rejected per-field (edit the status/lifecycle TRAIT instead). Trait definitions, events, and raw_payloads are never touched. Partial success: valid fields apply, the rest return in errors.

patch/api/v1/ackdb/observe/companies/{entityId}/fields

Request

  • Base URL
    http://localhost:3009
  • Auth
    HTTP bearer

Path parameters

entityIdstring required

The entity_id of the company row to edit.

Request body

object required

Field key → new value. Multiple fields allowed.

Example request

{
  "measure_status": "churned",
  "name": "Acme Inc"
}

Response

The keys that were updated + a per-field error map for any that were rejected.

Example response

{
  "data": {
    "updated": [
      "measure_status"
    ],
    "errors": {
      "activity": "Field \"activity\" is computed and cannot be edited directly."
    }
  }
}

Changes

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