Skip to main content
POST
Change company type

Overview

Use this endpoint to change an entity between company and person. PATCH /entities/:id, PATCH /entities/by-external-id/:externalId, and PATCH /entities/by-tax-id/:taxId ignore type in the body. The operation:
  • Updates only type.
  • Keeps the name, tax ID, shareholders, enrichments, and the rest of the record.
  • Does not re-run the risk matrix. The next evaluation uses the new type. The response includes riskMatrixExecuted: false when the type changed.
Sending the type the entity already has is a no-op (changed: false). Types other than person and company cannot be changed (409 ENTITY_TYPE_NOT_CHANGEABLE). reason is optional. When you send it, the unified audit stores it as typeChangeReason, together with previousType, newType, and source: change_entity_type_endpoint. A webhook entity.updated is sent with changes.type.

Endpoint

Authentication

The key needs permission to update entities.

Request Body

Provide exactly one lookup field, plus the target type. reason is optional.
string (uuid)
Internal gu1 entity ID.
string
Lookup only: the entity’s current external ID.
string
Lookup only: tax ID of an entity that already has a non-empty tax ID stored. Matching ignores punctuation. If more than one entity matches, the API returns 409 AMBIGUOUS_TAX_ID_LOOKUP.
string
required
Target type: person or company.
string
Optional audit reason, max 4000 characters (after trim). Omitted values are not stored.

Response

boolean
true when the request completed successfully.
boolean
false if type already matches; true if the entity was updated.
object
Entity snapshot after the operation.
boolean
Present when changed is true. Always false: this call does not re-evaluate rules.

Errors

Example

Lookup by external ID:
Lookup by tax ID: