Update Competitor
update_competitorEdit details, all three identifier groups and tracking together. Requires exactly one configured identity or legacy row ID and at least one editable field. Omission preserves; null clears domain, description, subtype/context; null or [] clears the supplied identifier group. Required name/type/tracked cannot be null; unknown resets type. Rename preserves identity/history and refuses duplicate or blank names. tracked=false keeps the entry available for re-enabling. Applies to Site competitors and Topic entities, which need not be rivals. No publication or Scan launch. Returns saved item (null on remove) and working scanConfig. If a roster save commits but identity setup is incomplete, read list_competitors and repair with update_competitor using competitorId for the saved row id; do not duplicate the add.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| domain | No | ||
| siteId | Yes | Site or Topic ID from list_sites_and_topics. | |
| aliases | No | Alternate names that clearly identify this entity. Null or [] clears; omission preserves. | |
| domains | No | Additional web domains. Null or [] clears; omission preserves. URLs are normalized to domains. | |
| tracked | No | ||
| entityId | No | Stable configured identity ID from list_competitors. | |
| entityType | No | ||
| description | No | ||
| competitorId | No | Compatibility identity ID, or saved roster row id for incomplete-identity repair. | |
| entitySubtype | No | ||
| ambiguousAliases | No | Names or abbreviations that need supporting context. Never treat these as safe exact aliases. Null or [] clears; omission preserves. | |
| disambiguationContext | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | ||
| summary | Yes | ||
| scanConfig | Yes |