Browse the extensions reference

Update Entity

post/extensions/roboledger/{graph_id}/operations/update-entity

Part of RoboLedger: Setup.

Update an entity of the graph's reporting group. Only provided (non-null) fields are updated. Omit entity_id to target the group parent; name a subsidiary's id to edit it. ownership_pct is refused on the group parent (422), and ticker must stay unique in the graph (409).

Idempotency: supply an Idempotency-Key header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.

Authentication

Authenticate in any one of these ways — not all of them:

  • API key in the X-API-Key header.
  • Bearer token in the Authorization header.

Path parameters

NameTypeDescription
graph_idrequiredstringGraph Id

Constraints: matches ^(kg[a-f0-9]{16,}(?:_[a-zA-Z0-9]{1,20})?|sec(?:_[a-zA-Z0-9]{1,20})?|library)$

Header parameters

NameTypeDescription
Idempotency-KeyoptionalstringIdempotency-Key

Request body

Required, application/json.

FieldTypeDescription
entity_idoptionalstring

The entity to update. Omit to target the group parent — the single-entity default.

nameoptionalstring
legal_nameoptionalstring
urioptionalstring
cikoptionalstring
tickeroptionalstring
exchangeoptionalstring
sicoptionalstring
sic_descriptionoptionalstring
categoryoptionalstring
state_of_incorporationoptionalstring
fiscal_year_endoptionalstring

Fiscal year-end as MM-DD (e.g. '12-31', '06-30').

tax_idoptionalstring
leioptionalstring
industryoptionalstring
entity_typeoptionalstring
phoneoptionalstring
websiteoptionalstring
address_line1optionalstring
address_cityoptionalstring
address_stateoptionalstring
address_postal_codeoptionalstring
address_countryoptionalstring
ownership_pctoptionalnumber

The parent's share of this entity, as a percent. Refused on the group parent, which has no owner in the graph.

Constraints: at most 100; greater than 0

Example request

curl · example 1 of 4
curl -X POST "https://api.robosystems.ai/extensions/roboledger/{graph_id}/operations/update-entity" \
  -H "X-API-Key: $ROBOSYSTEMS_API_KEY" \
  -H "Idempotency-Key: <Idempotency-Key>" \
  -H "Content-Type: application/json" \
  -d '{
  "entity_type": "corporation",
  "fiscal_year_end": "12-31",
  "legal_name": "Acme Corporation, Inc.",
  "name": "Acme Corp",
  "state_of_incorporation": "DE",
  "tax_id": "12-3456789"
}'
curl · example 2 of 4
curl -X POST "https://api.robosystems.ai/extensions/roboledger/{graph_id}/operations/update-entity" \
  -H "X-API-Key: $ROBOSYSTEMS_API_KEY" \
  -H "Idempotency-Key: <Idempotency-Key>" \
  -H "Content-Type: application/json" \
  -d '{
  "address_city": "Seattle",
  "address_country": "US",
  "address_line1": "100 Main St",
  "address_postal_code": "98101",
  "address_state": "WA"
}'
curl · example 3 of 4
curl -X POST "https://api.robosystems.ai/extensions/roboledger/{graph_id}/operations/update-entity" \
  -H "X-API-Key: $ROBOSYSTEMS_API_KEY" \
  -H "Idempotency-Key: <Idempotency-Key>" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Acme Holdings, LLC"
}'
curl · example 4 of 4
curl -X POST "https://api.robosystems.ai/extensions/roboledger/{graph_id}/operations/update-entity" \
  -H "X-API-Key: $ROBOSYSTEMS_API_KEY" \
  -H "Idempotency-Key: <Idempotency-Key>" \
  -H "Content-Type: application/json" \
  -d '{
  "entity_id": "ent_01J9ZK3M4N5P6Q7R8S9T0V1W2X",
  "ownership_pct": 80
}'

Responses

200 Successful Response

FieldTypeDescription
operationrequiredstring

Kebab-case operation name

operationIdrequiredstring

op_-prefixed ULID for audit and SSE correlation

statusrequiredstring

Operation lifecycle state

One of: completed, pending, failed

resultoptionalLedgerEntityResponse

Command-specific result payload

LedgerEntityResponse fields
FieldTypeDescription
idrequiredstring

Entity identifier (ULID).

namerequiredstring

Display name shown in UI.

legal_nameoptionalstring

Full registered legal name (when different from name).

urioptionalstring

Canonical URL / external identifier.

cikoptionalstring

SEC CIK (Central Index Key).

tickeroptionalstring

Stock ticker symbol.

exchangeoptionalstring

Listing exchange (e.g. 'NASDAQ', 'NYSE').

sicoptionalstring

SIC industry code.

sic_descriptionoptionalstring

SIC code description.

categoryoptionalstring

Filer category (e.g. 'Large Accelerated Filer').

state_of_incorporationoptionalstring

US state or country of incorporation.

fiscal_year_endoptionalstring

Fiscal year-end as MM-DD (e.g. '12-31', '06-30').

tax_idoptionalstring

Tax ID (EIN / SSN).

leioptionalstring

Legal Entity Identifier (ISO 17442).

industryoptionalstring

Free-form industry label.

entity_typeoptionalstring

Legal form (e.g. 'corporation', 'llc', 'lp').

reporting_style_idoptionalstring

Active Reporting Style (Structure id) governing this entity's statement layout. Change it via the change-reporting-style operation.

phoneoptionalstring
websiteoptionalstring
statusoptionalstring

Operational status: 'active' | 'inactive' | 'dissolved'.

Default: active

is_parentoptionalboolean

True for top-level entities; False for subsidiaries.

Default: true

parent_entity_idoptionalstring

Parent entity ID for subsidiaries; null for top-level.

ownership_pctoptionalnumber

The parent's share of this entity, as a percent (100 = wholly owned). Null on the group parent, and where it was never recorded.

sourceoptionalstring

Provenance: 'native' | 'sec' | 'quickbooks' | 'xero' | 'plaid'.

Default: native

source_idoptionalstring

Source-system primary key for sync reconciliation.

source_graph_idoptionalstring

Origin graph for received entities (cross-graph linking, e.g. RoboInvestor portfolio holdings).

connection_idoptionalstring

Source connection that ingested this row.

address_line1optionalstring
address_cityoptionalstring
address_stateoptionalstring
address_postal_codeoptionalstring
address_countryoptionalstring
created_atoptionalstring
updated_atoptionalstring
atrequiredstring

ISO-8601 UTC timestamp

createdByoptionalstring

User ID that initiated the operation

idempotentReplayoptionalboolean

True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.

Default: false

StatusMeaning
400Invalid request
401Authentication required
403Access denied
404Resource not found
409Idempotency-Key conflict — key reused with different body
422Validation error
429Rate limit exceeded
500Internal server error