ONE people:update
← Receivers

people:update

people family

Change a person's place in a group's People list. With status: deleted takes them out, active puts a deleted or merged person back. With merge: the record named is folded into this one, which takes what it lacked from it (email, title, company, picture, phone, website, tags, a real name over a bare id), and the folded record's orders and activity count for this one. Nothing is erased: a row is marked, never removed, so the other ledgers stop listing the person instead of bringing them back. Contact rows only: a person listed only through a team seat is changed on the members page (not_a_contact), an owner or admin is never hidden (has_a_role), an agent is never touched, nobody removes themselves. Not copied by a merge: the folded record's graph profile fields and social links

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
manage_actors
The class of authority the caller must already hold, decided from the attested context with no round trip.
Cost
free
What one call costs, so you can budget before acting.
Reversible
yes
The effect can be undone by a later call.
Idempotent
no
Not safe to blind-retry — dedupe on the envelope idempotencyKey.

Send it with your agent

One click hands your coding agent a prompt that registers the substrate, reads this contract, and makes the call. Launch opens the app; the others copy the prompt.

Claude Code
Codex
Cursor
Gemini CLI
Claude Desktop
ChatGPT
curl -X POST https://one.ie/api/ask/people:update \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "aid": "person-01a2b3c4", "status": "deleted" }}'

The key is never in a link. npx -y @oneie/cli login writes it to ~/.config/oneie/key on your machine.

Request

Validated before dispatch — an invalid payload is refused with the fix, never half-applied.

  • aid string required The person. On a merge, the record that stays
  • status deleted | active optional deleted: out of the list. active: back in it, for a deleted or a merged record
  • merge string optional The record folded into aid. Refused when it holds a role above member in the group (drop_has_a_role), when aid does (keep_has_a_role), or when aid is the caller (cannot_merge_into_self). Undo with status active on the folded record
  • group string optional Bare slug of the group whose list is edited; default the caller's own. It NAMES a group and never authorizes one: the caller must control it

Response

What comes back from the call.

  • ok boolean
  • aid string
  • status deleted | active
  • merged string The record that was folded in
  • filled string[] On a merge: the fields this record gained. Empty: it already had everything the other knew
  • error string nothing_to_update · one_change_at_a_time · aid required · keep and drop required · cannot_delete_self · cannot_merge_away_self · cannot_merge_into_self · same_person · not_a_contact · is_an_agent · has_a_role · drop_has_a_role · keep_has_a_role · already_removed · no_db

Traffic

Every call to people:update, counted where it is dispatched — over HTTP or in-process alike. Aggregate only — no actor, no payload, no workspace.

Counting…

Wiring

Every place in the open source that names people:update, and the file that answers it. Read from the tree at build time — a receiver is reached by NAME through one door, so there is no import edge to follow and a grep is the honest shape of the question. Structure, not volume — the count is in Traffic above.

Called from

UI 1
  • one.ie/web/src/components/crm/PeopleView.tsx:455
API route 1
  • one.ie/web/src/lib/receiver-index.generated.ts:350
→

Answered by

people:update one.ie/web/src/lib/resolvers/groups.ts:473 Dispatched through POST /api/ask/people:update, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "aid": {
      "type": "string",
      "description": "The person. On a merge, the record that stays"
    },
    "status": {
      "description": "deleted: out of the list. active: back in it, for a deleted or a merged record",
      "type": "string",
      "enum": [
        "deleted",
        "active"
      ]
    },
    "merge": {
      "description": "The record folded into aid. Refused when it holds a role above member in the group (drop_has_a_role), when aid does (keep_has_a_role), or when aid is the caller (cannot_merge_into_self). Undo with status active on the folded record",
      "type": "string"
    },
    "group": {
      "description": "Bare slug of the group whose list is edited; default the caller's own. It NAMES a group and never authorizes one: the caller must control it",
      "type": "string"
    }
  },
  "required": [
    "aid"
  ]
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "aid": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "deleted",
        "active"
      ]
    },
    "merged": {
      "description": "The record that was folded in",
      "type": "string"
    },
    "filled": {
      "description": "On a merge: the fields this record gained. Empty: it already had everything the other knew",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "error": {
      "description": "nothing_to_update · one_change_at_a_time · aid required · keep and drop required · cannot_delete_self · cannot_merge_away_self · cannot_merge_into_self · same_person · not_a_contact · is_an_agent · has_a_role · drop_has_a_role · keep_has_a_role · already_removed · no_db",
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}