Browse the extensions reference

Delete Information Block

post/extensions/roboledger/{graph_id}/operations/delete-information-block

Part of RoboLedger: Information Blocks.

Generic Information Block deletion entry. Returns a thin confirmation (deleted / structure_id / block_type / name). Block types whose Structures are library-seeded cannot be deleted per tenant and surface 501.

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.

One of 4 shapes, chosen by block_type.

block_type = schedule

Delete-information-block body for block_type="schedule".

Carries a typed schedule delete payload — just the structure_id.

FieldTypeDescription
block_typerequiredstring

Discriminator value selecting this arm.

payloadrequiredDeleteScheduleRequest

Schedule delete payload.

DeleteScheduleRequest fields
FieldTypeDescription
structure_idrequiredstring

block_type = rollforward

Delete-information-block body for block_type="rollforward".

Cascades through any synthetic facts produced by this block's filter evaluations. The underlying ledger LineItems are not touched.

FieldTypeDescription
block_typerequiredstring

Discriminator value selecting this arm.

payloadrequiredDeleteRollforwardRequest

Rollforward delete payload.

DeleteRollforwardRequest fields
FieldTypeDescription
structure_idrequiredstring

Structure ID of the rollforward block.

block_type = forecast

Delete-information-block body for block_type="forecast".

Removes the scenario's entire parallel universe — the lever FactSet and every computed scenario FactSet. Actuals are never touched.

FieldTypeDescription
block_typerequiredstring

Discriminator value selecting this arm.

payloadrequiredDeleteForecastRequest

Forecast delete payload.

DeleteForecastRequest fields
FieldTypeDescription
structure_idrequiredstring

Structure ID of the forecast block.

block_type = balance_sheet, cash_flow_statement, comprehensive_income, equity_statement, income_statement, metric, reconciliation, regulatory_disclosure

Delete-information-block body for block types that don't yet have a typed delete path at the API boundary.

Statement-family blocks cannot be deleted per tenant (the underlying Report should be archived via the report APIs instead). Metric deletion is not yet implemented. Calls return HTTP 501.

FieldTypeDescription
block_typerequiredstring

Statement-family or metric block type. Deletion returns 501 — statements are library-seeded (archive the underlying Report instead); metric deletion is pending.

One of: balance_sheet, income_statement, cash_flow_statement, equity_statement, comprehensive_income, regulatory_disclosure, metric, reconciliation

payloadoptionalobject

Untyped payload — typed-arm validation is skipped because the dispatch handler raises 501 before the payload is consumed.

Example request

curl · block_type = schedule
curl -X POST "https://api.robosystems.ai/extensions/roboledger/{graph_id}/operations/delete-information-block" \
  -H "X-API-Key: $ROBOSYSTEMS_API_KEY" \
  -H "Idempotency-Key: <Idempotency-Key>" \
  -H "Content-Type: application/json" \
  -d '{
  "block_type": "schedule",
  "payload": {
    "structure_id": "struct_depr_office_2026"
  }
}'
curl · block_type = rollforward
curl -X POST "https://api.robosystems.ai/extensions/roboledger/{graph_id}/operations/delete-information-block" \
  -H "X-API-Key: $ROBOSYSTEMS_API_KEY" \
  -H "Idempotency-Key: <Idempotency-Key>" \
  -H "Content-Type: application/json" \
  -d '{
  "block_type": "rollforward",
  "payload": {
    "structure_id": "struct_rf_cash_2026"
  }
}'
curl · block_type = forecast
curl -X POST "https://api.robosystems.ai/extensions/roboledger/{graph_id}/operations/delete-information-block" \
  -H "X-API-Key: $ROBOSYSTEMS_API_KEY" \
  -H "Idempotency-Key: <Idempotency-Key>" \
  -H "Content-Type: application/json" \
  -d '{
  "block_type": "forecast",
  "payload": {
    "structure_id": "struct_fy26_budget"
  }
}'

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

resultoptionalDeleteInformationBlockResponse

Command-specific result payload

DeleteInformationBlockResponse fields
FieldTypeDescription
deletedoptionalboolean

Default: true

structure_idrequiredstring
block_typerequiredstring
namerequiredstring
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