---
updatedAt: 2026-08-25T23:06:23.000Z
agentTools:
  projectIndex: https://developer.intellistack.com/llms.txt
---

# Delete a dataset substitution

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "DatasetSubstitutionObjectType": {
        "enum": [
          "ENTITY",
          "FIELD",
          "RELATIONSHIP"
        ],
        "type": "string"
      },
      "ErrorDetails": {
        "description": "Details of an error",
        "properties": {
          "code": {
            "description": "Internal error code",
            "type": "string"
          },
          "detail": {
            "description": "Error details",
            "type": "string"
          },
          "sourceError": {
            "$ref": "#/components/schemas/ErrorDetails"
          },
          "title": {
            "description": "Error title",
            "type": "string"
          }
        },
        "type": "object"
      },
      "ErrorEnvelope": {
        "description": "Contains a list of errors",
        "properties": {
          "errors": {
            "items": {
              "$ref": "#/components/schemas/ErrorDetails"
            },
            "type": "array"
          },
          "message": {
            "description": "Top level message to describe the error",
            "type": "string"
          },
          "traceId": {
            "description": "Internal traceId",
            "type": "string"
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "bearerFormat": "JWT",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "title": "Data Activation",
    "version": "0.0.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/v1/activation/dataset/{dataSetId}/substitutions/{objectType}/{originalId}": {
      "delete": {
        "operationId": "deleteDataSetSubstitutionV2",
        "parameters": [
          {
            "description": "The ID of the dataset",
            "in": "path",
            "name": "dataSetId",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "The type of catalog object being substituted",
            "in": "path",
            "name": "objectType",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/DatasetSubstitutionObjectType"
            }
          },
          {
            "description": "The original catalog object ID",
            "in": "path",
            "name": "originalId",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Substitution deleted. When deleting an entity substitution, field substitutions that were parented through that entity's substitute are removed automatically before the entity row is dropped."
          },
          "400": {
            "description": "Invalid substitution request"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Dependent field substitutions changed while the removal was in flight (for example a FIELD row was inserted between the out-of-transaction probe and the write). Nothing was deleted; re-read this dataset's substitutions and retry."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Delete a dataset substitution",
        "tags": [
          "Dataset"
        ]
      }
    }
  },
  "servers": [
    {
      "description": "US Production Server",
      "url": "https://api-us.streamline.intellistack.ai"
    },
    {
      "description": "Canada Production Server",
      "url": "https://api-ca.streamline.intellistack.ai"
    }
  ],
  "tags": [
    {
      "description": "v2 Data set related endpoints",
      "name": "Dataset"
    }
  ]
}
```