---
title: /ingest/settings/ingest-schema/{id}
slug: amberflo-api/U0jw-ingestsettingsingest-schemaid
docTags: 
createdAt: 2024-11-07T15:10:16.968Z
---

{
  "id": "HGN-uF-NmqlN5K3zXRVvF",
  "type": "api-oas-v2",
  "data": {
    "method": "DELETE",
    "url": "https://app.amberflo.io/ingest/settings/ingest-schema/{id}",
    "servers": [
      {
        "url": "https://app.amberflo.io/ingest/settings/ingest-schema/{id}"
      }
    ],
    "name": "",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "id",
          "type": "string",
          "description": ""
        }
      ],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "apiKey",
          "name": "X-API-KEY",
          "kind": "optional",
          "type": "apiKey",
          "in": "header"
        }
      ]
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Successful request",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "ingestion.settings.IngestMessageSchema.out",
            "schema": [
              {
                "name": "id",
                "kind": "optional",
                "type": "string",
                "description": "Unique id for the schema.",
                "example": ""
              },
              {
                "name": "createTimeInSeconds",
                "kind": "optional",
                "type": "integer<int64>",
                "description": "Create time in [Unix time](https://en.wikipedia.org/wiki/Unix_time) (seconds)",
                "example": 0
              },
              {
                "name": "updateTimeInSeconds",
                "kind": "optional",
                "type": "integer<int64>",
                "description": "Update time in [Unix time](https://en.wikipedia.org/wiki/Unix_time) (seconds)",
                "example": 0
              },
              {
                "name": "schema",
                "kind": "optional",
                "type": "object",
                "description": "Schema description",
                "modelRef": "#/components/schemas/ingestion.schema_adapters.nodes.ExplodeNode.out",
                "customType": "ingestion.schema_adapters.nodes.ExplodeNode.out",
                "schema": [
                  {
                    "name": "type",
                    "kind": "optional",
                    "type": "string",
                    "example": "",
                    "default": "explode"
                  },
                  {
                    "name": "sourceName",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  },
                  {
                    "name": "subComponents",
                    "kind": "optional",
                    "type": "object",
                    "description": "",
                    "modelRef": "#/components/schemas/ingestion.schema_adapters.nodes.SchemaExtractorNode.out",
                    "customType": "ingestion.schema_adapters.nodes.SchemaExtractorNode.out[]",
                    "schema": [],
                    "complexType": "oneOf",
                    "complexItems": [
                      {
                        "name": "ingestion.schema_adapters.nodes.CustomerIdNode.out",
                        "description": "",
                        "modelRef": "#/components/schemas/ingestion.schema_adapters.nodes.CustomerIdNode.out",
                        "schema": [
                          {
                            "name": "type",
                            "kind": "optional",
                            "type": "string",
                            "example": "",
                            "default": "customer_id"
                          },
                          {
                            "name": "sourceName",
                            "kind": "optional",
                            "type": "string",
                            "example": ""
                          }
                        ]
                      },
                      {
                        "name": "ingestion.schema_adapters.nodes.DimensionNode.out",
                        "description": "",
                        "modelRef": "#/components/schemas/ingestion.schema_adapters.nodes.DimensionNode.out",
                        "schema": [
                          {
                            "name": "type",
                            "kind": "optional",
                            "type": "string",
                            "example": "",
                            "default": "dimension"
                          },
                          {
                            "name": "sourceName",
                            "kind": "optional",
                            "type": "string",
                            "example": ""
                          },
                          {
                            "name": "targetName",
                            "kind": "optional",
                            "type": "string",
                            "example": ""
                          }
                        ]
                      },
                      {
                        "name": "ingestion.schema_adapters.nodes.EventTimeNode.out",
                        "description": "",
                        "modelRef": "#/components/schemas/ingestion.schema_adapters.nodes.EventTimeNode.out",
                        "schema": [
                          {
                            "name": "type",
                            "kind": "optional",
                            "type": "string",
                            "example": "",
                            "default": "event_time"
                          },
                          {
                            "name": "timeFormat",
                            "kind": "optional",
                            "type": "string",
                            "description": "",
                            "modelRef": "#/components/schemas/ingestion.schema_adapters.nodes.TimeFormat.out",
                            "customType": "ingestion.schema_adapters.nodes.TimeFormat.out",
                            "schema": [
                              {
                                "name": "",
                                "description": "",
                                "customType": "Max depth limit reached"
                              }
                            ]
                          },
                          {
                            "name": "sourceName",
                            "kind": "optional",
                            "type": "string",
                            "example": ""
                          }
                        ]
                      },
                      {
                        "name": "ingestion.schema_adapters.nodes.ExplodeNode.out",
                        "description": "",
                        "modelRef": "#/components/schemas/ingestion.schema_adapters.nodes.ExplodeNode.out",
                        "schema": [
                          {
                            "name": "",
                            "description": "",
                            "customType": "Max depth limit reached"
                          }
                        ]
                      },
                      {
                        "name": "ingestion.schema_adapters.nodes.ForkNode.out",
                        "description": "",
                        "modelRef": "#/components/schemas/ingestion.schema_adapters.nodes.ForkNode.out",
                        "schema": [
                          {
                            "name": "",
                            "description": "",
                            "customType": "Max depth limit reached"
                          }
                        ]
                      },
                      {
                        "name": "ingestion.schema_adapters.nodes.MeterApiNameNode.out",
                        "description": "",
                        "modelRef": "#/components/schemas/ingestion.schema_adapters.nodes.MeterApiNameNode.out",
                        "schema": [
                          {
                            "name": "",
                            "description": "",
                            "customType": "Max depth limit reached"
                          }
                        ]
                      },
                      {
                        "name": "ingestion.schema_adapters.nodes.ValueNode.out",
                        "description": "",
                        "modelRef": "#/components/schemas/ingestion.schema_adapters.nodes.ValueNode.out",
                        "schema": [
                          {
                            "name": "",
                            "description": "",
                            "customType": "Max depth limit reached"
                          }
                        ]
                      },
                      {
                        "name": "ingestion.schema_adapters.nodes.SameElementArrayNode.out",
                        "description": "",
                        "modelRef": "#/components/schemas/ingestion.schema_adapters.nodes.SameElementArrayNode.out",
                        "schema": [
                          {
                            "name": "",
                            "description": "",
                            "customType": "Max depth limit reached"
                          }
                        ]
                      },
                      {
                        "name": "ingestion.schema_adapters.nodes.UniqueIdNode.out",
                        "description": "",
                        "modelRef": "#/components/schemas/ingestion.schema_adapters.nodes.UniqueIdNode.out",
                        "schema": [
                          {
                            "name": "",
                            "description": "",
                            "customType": "Max depth limit reached"
                          }
                        ]
                      }
                    ]
                  }
                ]
              },
              {
                "name": "condition",
                "kind": "optional",
                "type": "object",
                "description": "Optional condition for applying schema. Used to evaluate if schema should be applied",
                "modelRef": "#/components/schemas/ingestion.schema_adapters.conditions.MatchCondition.out",
                "customType": "ingestion.schema_adapters.conditions.MatchCondition.out",
                "schema": [],
                "complexType": "oneOf",
                "complexItems": [
                  {
                    "name": "ingestion.schema_adapters.conditions.NotCondition.out",
                    "description": "",
                    "modelRef": "#/components/schemas/ingestion.schema_adapters.conditions.NotCondition.out",
                    "schema": [
                      {
                        "name": "type",
                        "kind": "optional",
                        "type": "string",
                        "example": "",
                        "default": "not"
                      },
                      {
                        "name": "condition",
                        "kind": "optional",
                        "type": "object",
                        "description": "",
                        "modelRef": "#/components/schemas/ingestion.schema_adapters.conditions.MatchCondition.out",
                        "customType": "ingestion.schema_adapters.conditions.MatchCondition.out",
                        "schema": [],
                        "complexType": "oneOf",
                        "complexItems": [
                          {
                            "name": "ingestion.schema_adapters.conditions.NotCondition.out",
                            "description": "",
                            "modelRef": "#/components/schemas/ingestion.schema_adapters.conditions.NotCondition.out",
                            "schema": [
                              {
                                "name": "",
                                "description": "",
                                "customType": "Circular-Reference"
                              }
                            ]
                          },
                          {
                            "name": "ingestion.schema_adapters.conditions.ValidIdentifierCondition.out",
                            "description": "",
                            "modelRef": "#/components/schemas/ingestion.schema_adapters.conditions.ValidIdentifierCondition.out",
                            "schema": [
                              {
                                "name": "type",
                                "kind": "optional",
                                "type": "string",
                                "example": "",
                                "default": "valid_identifier"
                              },
                              {
                                "name": "fieldName",
                                "kind": "optional",
                                "type": "string",
                                "example": ""
                              },
                              {
                                "name": "validValues",
                                "kind": "optional",
                                "type": "array",
                                "example": "",
                                "itemType": "string",
                                "customType": "string[]",
                                "itemExample": "",
                                "itemDefault": ""
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "ingestion.schema_adapters.conditions.ValidIdentifierCondition.out",
                    "description": "",
                    "modelRef": "#/components/schemas/ingestion.schema_adapters.conditions.ValidIdentifierCondition.out",
                    "schema": [
                      {
                        "name": "type",
                        "kind": "optional",
                        "type": "string",
                        "example": "",
                        "default": "valid_identifier"
                      },
                      {
                        "name": "fieldName",
                        "kind": "optional",
                        "type": "string",
                        "example": ""
                      },
                      {
                        "name": "validValues",
                        "kind": "optional",
                        "type": "array",
                        "example": "",
                        "itemType": "string",
                        "customType": "string[]",
                        "itemExample": "",
                        "itemDefault": ""
                      }
                    ]
                  }
                ]
              },
              {
                "name": "autoDetectable",
                "kind": "optional",
                "type": "boolean",
                "description": "Whether the schema can be used in schema auto-detection. Can only be true if schema has condition",
                "example": ""
              }
            ],
            "modelRef": "#/components/schemas/ingestion.settings.IngestMessageSchema.out",
            "isExpanded": true
          }
        ]
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "rFwo3OmWDAlPNJLbuCP48",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request DELETE \\\n     --url https://app.amberflo.io/ingest/settings/ingest-schema/{id} \\\n     --header 'accept: application/json'"
        },
        {
          "id": "N-VLNXUi__OzC4WLNYb3n",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'DELETE',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://app.amberflo.io/ingest/settings/ingest-schema/{id}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "5xpeyhzZKu4140OpB_AJz",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://app.amberflo.io/ingest/settings/ingest-schema/{id}\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "dyvhaVWSwrlr5UOd_Quvu",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://app.amberflo.io/ingest/settings/ingest-schema/{id}\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"DELETE\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "rFwo3OmWDAlPNJLbuCP48"
    },
    "results": {
      "languages": [
        {
          "id": "I7tPieRAo9Dgc0ebrfZ8h",
          "language": "200",
          "code": "// Successful request\n{\n  \"id\": \"\",\n  \"createTimeInSeconds\": \"\",\n  \"updateTimeInSeconds\": \"\",\n  \"schema\": {\n    \"type\": \"\",\n    \"sourceName\": \"\",\n    \"subComponents\": {}\n  },\n  \"condition\": {},\n  \"autoDetectable\": false\n}"
        }
      ],
      "selectedLanguageId": "I7tPieRAo9Dgc0ebrfZ8h"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}