RoboInvestor

Delete Portfolio Block

Cascade-delete the portfolio plus all of its positions. When active positions exist, the request must include confirm_active_positions: true — safety belt to prevent accidental cascade. Disposed-only portfolios delete without the flag.

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.

post/extensions/roboinvestor/{graph_id}/operations/delete-portfolio-block

Request

  • Base URL: https://api.robosystems.ai (the document declares no server; this is the origin it was published from)
  • URL: https://api.robosystems.ai/extensions/roboinvestor/{graph_id}/operations/delete-portfolio-block
  • Auth: one of:
    • API key in header X-API-Key
    • HTTP bearer

Path parameters

graph_idstring required

Headers

Idempotency-Keystring nullable

Request body

portfolio_idstring required

Target portfolio ID.

confirm_active_positionsboolean

Required acknowledgement when the portfolio has active positions. Set true to consent to cascade-deleting them; leave false and the operation returns 409 if any active positions exist.

Example request

{
  "portfolio_id": "port_watchlist_2026"
}

Response

Successful Response

operationstring required

Kebab-case operation name

operationIdstring required

op_-prefixed ULID for audit and SSE correlation

status'completed' | 'pending' | 'failed' required

Operation lifecycle state

atstring required

ISO-8601 UTC timestamp

createdBystring nullable

User ID that initiated the operation

idempotentReplayboolean

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

Changes

No recorded changes to this operation across all 1 revision of this API.