addIdentifier
Attach aliases or external identifiers to an existing entity so renamed records retain prior names for resolver and wikilink matching.
Instructions
Attach an identifier (an alias by default) to an EXISTING entity, appending an entityIdentifierAdded event so the resolver and vault wikilinks match the entity by that surface form. Use this after renaming an entity's displayName via updateEntity to retain the prior name: addIdentifier{entityUid, identifier:"Old Name", kind:"alias"}. createEntity only seeds identifiers at mint time; this adds them later. kind defaults to "alias"; pass email/username/phone/id or a snake_case domain type for other identifiers. Returns E_NOT_FOUND when the uid does not resolve and E_VALIDATION on an empty identifier or malformed kind.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Identifier kind in snake_case. Canonical: alias, email, username, phone, id; domain types (hrb, lei, tax_id, …) keep their own lookup lane. Defaults to "alias" when omitted — the kind to use for retaining an old display name after a rename. | |
| entityUid | Yes | ULID of the existing entity to attach the identifier to. Required. | |
| identifier | Yes | The surface form / external identifier to attach, e.g. a prior display name "Erebor Global", an email, a username, or a domain id. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | AIP resource name of the entity the identifier was attached to. | |
| status | Yes | Always "added" on success. |