pipeline_stages

Delete pipeline stage

Soft-delete a CUSTOM stage and hand its members to another one. replace_pipeline_stage_sid is required and must be a live stage of the same object: people and companies are repointed to it in the background (retained), so nothing is orphaned, and counts move within seconds rather than instantly. A system stage (key != null) is refused with 422: the auto-transition engine and the company derivation resolve those by key. Never blocked, idempotent (repeat returns already_deleted:true), no restore.

Contract:

  • MCP tool delete_pipeline_stage, registry package mcp.playtables/pipeline_stages, mount playtables.pipeline.
  • Operation delete, response envelope delete_simple.
  • Flags: dangerous: the MCP layer gates it behind a preview/commit token, and the effect cannot be undone through this API.
delete/api/pipeline-stages/{sid}

Request

  • Base URL
    https://beta.getsales.io/playtables/v1
  • Auth
    HTTP bearer and API key in header Team-SID

Path parameters

sidstring required

The custom stage to remove. A system stage (key != null) is refused with 422 validation_failed.

Query parameters

replace_pipeline_stage_sidstring required

Required. Every member object is repointed here, so nothing is orphaned: a live stage of the SAME object (422 otherwise), and not the stage being deleted (the backend does not reject the sid itself, and members would land on the row that just went away).

Response

delete_simple success envelope.

successtrue required
operation'delete' required
itemobject required
already_deletedboolean required
soft_deletedboolean required
retainedstring[] required

Changes

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