Brain Docs

Reference

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

renameEntity

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

PURPOSE

Change the canonical name, with an explicit choice about what happens to the old one.

POST/v1/entities/:id/renameBearer API keystable
renameEntity(entityId: string, input: RenameEntityInput): Promise<EntityDetail>
Handshake credentialstable
renameEntity(request: EntityRenameRequest): Promise<EntityViewResponse>

Parameters

ParameterTypeRequired
entityIdstringrequired

The entity to rename.

newCanonicalNamestringrequired

The new name.

moveToAliasbooleanoptional

Keep the old canonical name as an alias. Without it the old name stops resolving — which is usually not what a rename means. Set it unless the old name was wrong rather than outdated.

Returns

FieldTypePresence
—EntityDetailalways

The full entity as it now stands.

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
updateEntityresolveEntity

Was this page helpful?

updateEntity

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

mergeEntities

Fold one entity into another, with an audit id and a grace period you must read.

On this page

ParametersReturnsOn the wire
Suggest an editOpen in Playground