Brain Docs

Reference

TypeScript SDKInstallationHTTP clientWire client
createEntitygetEntityresolveEntitylistEntitiesupdateEntityrenameEntitymergeEntitiesunmergeEntitytombstoneEntity
ErrorsRetriesPagination
Brain/Docs
✦ ASKBrain on GitHubDashboard
TypeScript SDKEntitiesupdateEntity

updateEntity

Replace an entity's canonical name, aliases and attributes.

PURPOSE

Replace an entity's mutable fields. It is a PUT: the fields it is given replace what is there.

PUT/v1/entities/:idBearer API keystable
updateEntity(entityId: string, input: UpdateEntityInput): Promise<EntityDetail>
Handshake credentialstable
updateEntity(request: EntityUpdateRequest): Promise<EntityViewResponse>

Parameters

ParameterTypeRequired
entityIdstringrequired

The entity to update. Positional on the HTTP tier.

canonicalNamestringrequired

The canonical name. Required even when unchanged.

aliasesstring[]optional

Replaces the alias set — passing an empty list clears it.

attributesstring (wire: bytes)optional

Replaces the attribute blob.

Returns

FieldTypePresence
—EntityDetailalways

The full entity as it now stands.

Replace, not merge

Omitting aliases is not the same as leaving them alone in every client: pass the full set you want to end up with. To change only the display name while keeping the old one resolvable, use renameEntity instead.

On the wire

Ids are fixed-width UUID bytes rather than strings, attributes is an opaque attributesBlob, and every request carries a requestId plus an optional actAs. See Wire client.

See also
renameEntitygetEntity

Was this page helpful?

listEntities

Enumerate entities by type and name prefix — cursor-paged, with a required type filter.

renameEntity

Change an entity's canonical name, optionally keeping the old one as an alias.

On this page

ParametersReturnsOn the wire
Suggest an editOpen in Playground