---
updatedAt: 2026-09-08T20:26:09.000Z
agentTools:
  projectIndex: https://docs.observeinc.com/llms.txt
---

# Update ingest route priorities

> **Beta — schema may still change; breaking changes are coordinated with affected customers. Suitable for evaluation, not production reliance.**

Reorder the ingest routes for a type. Send an ordered list of route IDs
that sets the new priority order. The list must contain every route ID for
the type, with no duplicates and no other IDs.

Returns all routes for the type in the new priority order.


# OpenAPI definition

````json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Observe by Snowflake API",
    "description": "# Overview\nWelcome to the Observe API Docs!\n\nThe Observe API is a RESTful API. POST bodies and responses are typically JSON-encoded.\n\n## Authentication\nRequests to the Observe API are authenticated with an API token. The token can be supplied using HTTP Bearer authentication:\n```\n// passing token as bearer token\ncurl -H \"Authorization: Bearer <customerid> <token>\" https://<customerid>.<observe-domain>.com/v1/...\n```\n",
    "version": "1.0.230307"
  },
  "servers": [
    {
      "url": "https://{customerid}.observeinc.com",
      "description": "US west server",
      "variables": {
        "customerid": {
          "default": "OBSERVE_CUSTOMERID",
          "description": "The customer ID for your instance."
        }
      }
    },
    {
      "url": "https://{customerid}.{cluster}.observeinc.com",
      "description": "Specific regional cluster (prod)",
      "variables": {
        "customerid": {
          "default": "OBSERVE_CUSTOMERID",
          "description": "The customer ID for your instance."
        },
        "cluster": {
          "enum": [
            "eu-1",
            "ap-1"
          ],
          "default": "eu-1",
          "description": "For regional clusters, choose one."
        }
      }
    },
    {
      "url": "https://{customerid}.{domain}.com",
      "description": "Specific Observe server",
      "variables": {
        "customerid": {
          "default": "OBSERVE_CUSTOMERID",
          "description": "The customer ID for your instance."
        },
        "domain": {
          "default": "OBSERVE_DOMAIN",
          "description": "The Observe domain for your instance."
        }
      }
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/v1/ingest/routes/{type}": {
      "patch": {
        "x-badges": [
          {
            "name": "beta",
            "position": "before",
            "color": "#FFCC00"
          }
        ],
        "summary": "Update ingest route priorities",
        "description": "> **Beta — schema may still change; breaking changes are coordinated with affected customers. Suitable for evaluation, not production reliance.**\n\nReorder the ingest routes for a type. Send an ordered list of route IDs\nthat sets the new priority order. The list must contain every route ID for\nthe type, with no duplicates and no other IDs.\n\nReturns all routes for the type in the new priority order.\n",
        "operationId": "UpdateIngestRoutePriorities",
        "tags": [
          "Ingest Routes"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IngestRoutes-UpdatePriorityRequest"
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/IngestRoutes-Type"
          }
        ],
        "responses": {
          "200": {
            "description": "Ingest route priorities updated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IngestRoutes-ListResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/ErrorResponse-400"
          },
          "401": {
            "$ref": "#/components/responses/ErrorResponse-401"
          },
          "403": {
            "$ref": "#/components/responses/ErrorResponse-403"
          },
          "404": {
            "$ref": "#/components/responses/ErrorResponse-404"
          },
          "429": {
            "$ref": "#/components/responses/ErrorResponse-429"
          },
          "5XX": {
            "$ref": "#/components/responses/ErrorResponse-5XX"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "Authorization: Bearer <customerid> <apitoken>\n"
      }
    },
    "schemas": {
      "ObjectId": {
        "type": "string",
        "format": "ObjectId"
      },
      "User": {
        "title": "User",
        "type": "object",
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "title": "User Identifier",
            "$ref": "#/components/schemas/ObjectId"
          },
          "label": {
            "title": "User Label",
            "type": "string"
          },
          "timezone": {
            "type": "string"
          },
          "locale": {
            "type": "string"
          }
        }
      },
      "Meta": {
        "description": "List Response Metadata",
        "type": "object",
        "required": [
          "totalCount"
        ],
        "properties": {
          "totalCount": {
            "description": "The total number of resources available, independent of pagination.\nThe API may return -1 if the total count is unknown or cannot be computed\nin reasonable time.\n",
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "ErrorMessage": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "A stable, machine-readable identifier for the kind of error."
          },
          "message": {
            "type": "string",
            "description": "Error message"
          }
        },
        "required": [
          "type",
          "message"
        ]
      },
      "ObjectRef": {
        "title": "ObjectRef",
        "type": "object",
        "description": "A reference to another resource. Always carries the id; the optional `record` field carries the brief metadata, populated when expand=true. Brief expansion applies to one layer only — fields inside `record` that are themselves ObjectRefs (e.g. `record.managedBy`) are returned id-only, never with their own `record` populated. CEL filter expressions can deeper-resolve via lazy wrapper resolution if needed.\n",
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/ObjectId"
          },
          "record": {
            "$ref": "#/components/schemas/ObjectBrief"
          }
        }
      },
      "ObjectBrief": {
        "title": "ObjectBrief",
        "type": "object",
        "description": "Brief record fields for an ObjectRef. This type is polymorphic: additional fields pointing to specific object types (e.g. dataset, dashboard, monitor) may be added in the future as needed.\n",
        "required": [
          "label",
          "description",
          "iconUrl",
          "managedBy"
        ],
        "properties": {
          "label": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "iconUrl": {
            "type": "string"
          },
          "managedBy": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ObjectRef"
              },
              {
                "type": "null"
              }
            ],
            "description": "Owner/manager of this object. Always returned as an id-only ObjectRef even when the parent was requested with expand=true: `expand` populates a single layer of brief data, so `record.managedBy` on a brief is itself never expanded. Pass the inner id back through a separate request (or filter via CEL, which lazily resolves) to access the manager's brief."
          }
        }
      },
      "IngestRoutes-Type": {
        "title": "IngestRoutesType",
        "type": "string",
        "description": "The observation type a route applies to. Each type corresponds to a source dataset schema and to the ingest endpoints that emit compatible data. `any` is the generic schema with `FIELDS` and `EXTRA` columns; the rest are direct-write source datasets. See the `type` path parameter for the endpoint mappings.",
        "enum": [
          "otellogs",
          "otelmetrics",
          "oteltraces",
          "prometheus",
          "k8sentity",
          "any"
        ]
      },
      "NullableObjectId": {
        "type": [
          "string",
          "null"
        ],
        "format": "ObjectId"
      },
      "IngestRoutes-Resource": {
        "title": "IngestRoutesObject",
        "type": "object",
        "description": "An ingest route resource. This is one rule defining a route for observations of a certain type.",
        "required": [
          "id",
          "createdBy",
          "createdAt",
          "updatedBy",
          "updatedAt",
          "type",
          "pipeline",
          "layout",
          "destinationId",
          "secondaryDestinationId",
          "enabled",
          "managedBy"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/ObjectId",
            "readOnly": true,
            "description": "Unique identifier for this ingest route."
          },
          "createdBy": {
            "$ref": "#/components/schemas/User",
            "readOnly": true,
            "description": "User who created this route. Always returned as an ID-only object; pass expand=true to populate `record`."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "description": "Time at which this route was created."
          },
          "updatedBy": {
            "$ref": "#/components/schemas/User",
            "readOnly": true,
            "description": "User who last updated this route. Always returned as an ID-only object; pass expand=true to populate `record`."
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "description": "Time at which this route was last updated."
          },
          "type": {
            "$ref": "#/components/schemas/IngestRoutes-Type",
            "readOnly": true,
            "description": "The observation type this route applies to. Set at creation and cannot be changed."
          },
          "pipeline": {
            "type": "string",
            "readOnly": true,
            "description": "OPAL expression acting as the match predicate for this route. An observation is routed here when the expression evaluates true. Compiled against the schema of the destination source dataset.\n\nAn empty string identifies the type's default route, which matches every observation not matched by a higher-priority route. See the `pipeline` field on the create request for the restrictions that apply per type."
          },
          "layout": {
            "type": "object",
            "readOnly": true,
            "description": "Opaque JSON blob round-tripped to the frontend; not interpreted by the server."
          },
          "destinationId": {
            "$ref": "#/components/schemas/ObjectId",
            "readOnly": true,
            "description": "Primary destination dataset ID. Observations matching this route are written here."
          },
          "secondaryDestinationId": {
            "$ref": "#/components/schemas/NullableObjectId",
            "readOnly": true,
            "description": "Secondary destination dataset ID. When set, observations matching this route are duplicated to both the primary and secondary destination datasets."
          },
          "enabled": {
            "type": "boolean",
            "readOnly": true,
            "description": "Whether this route is evaluated against incoming data. A disabled route is skipped entirely, as though it did not exist. New routes are created disabled; see the create request for details."
          },
          "managedBy": {
            "readOnly": true,
            "description": "Identifies the owner/manager of this route. Managed routes cannot be created, modified, or deleted through the API. Always returned as an ID-only object; pass expand=true to populate `record` (label, description, iconUrl).",
            "anyOf": [
              {
                "$ref": "#/components/schemas/ObjectRef"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "IngestRoutes-ListResponse": {
        "title": "IngestRoutesListResponse",
        "type": "object",
        "description": "All ingest routes for a type, in priority order.",
        "required": [
          "ingestRoutes",
          "meta"
        ],
        "properties": {
          "ingestRoutes": {
            "type": "array",
            "description": "The routes, ordered by descending priority. The type's default route is always last.",
            "items": {
              "$ref": "#/components/schemas/IngestRoutes-Resource"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/Meta",
            "description": "Result metadata. `totalCount` is the number of routes for the type. This endpoint is not paginated, so it always equals the length of `ingestRoutes`."
          }
        }
      },
      "IngestRoutes-UpdatePriorityRequest": {
        "title": "IngestRoutesUpdatePriorityRequest",
        "type": "object",
        "description": "New priority order for every route of a type. Reordering is a whole-list operation; there is no way to move a single route.",
        "required": [
          "ordering"
        ],
        "properties": {
          "ordering": {
            "type": "array",
            "description": "Route IDs in the desired priority order, highest priority first. Must contain every route ID for the type exactly once.",
            "items": {
              "$ref": "#/components/schemas/ObjectId"
            }
          }
        }
      }
    },
    "parameters": {
      "IngestRoutes-Type": {
        "in": "path",
        "name": "type",
        "schema": {
          "$ref": "#/components/schemas/IngestRoutes-Type"
        },
        "required": true,
        "description": "The type of the ingest route to query. These types correspond to the various source dataset schemas supported by Observe.\n`any` refers to the \"default\" generic source dataset schema with the `FIELDS` and `EXTRA` columns. All of the others\ncorrespond to direct-write source datasets. Each type is also associated with particular ingest HTTP endpoints that emit\ncompatible data for that type. Incoming data on a given endpoint is routable to any dataset of the corresponding type.\n\nThe following [type -> ingest path] mappings are defined:\n\n- `otellogs` <-> `/v1/otel/v1/logs`\n- `otelmetrics` <-> `/v1/otel/v1/metrics`\n- `oteltraces` <-> `/v1/otel/v1/traces`\n- `prometheus` <-> `/v1/prometheus`\n- `k8sentity` <-> `/v1/kubernetes`\n- `any` <-> `/v1/*`\n",
        "example": "otellogs"
      }
    },
    "responses": {
      "ErrorResponse-400": {
        "description": "Bad request",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorMessage"
            }
          }
        }
      },
      "ErrorResponse-401": {
        "description": "Unauthorized",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorMessage"
            }
          }
        }
      },
      "ErrorResponse-403": {
        "description": "Forbidden",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorMessage"
            }
          }
        }
      },
      "ErrorResponse-404": {
        "description": "Resource not found",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorMessage"
            }
          }
        }
      },
      "ErrorResponse-429": {
        "description": "Rate limit reached",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorMessage"
            }
          }
        }
      },
      "ErrorResponse-5XX": {
        "description": "Internal server error",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorMessage"
            }
          }
        }
      }
    }
  }
}
````