---
title: "Filter by upstream_status_code"
url: "https://nov18-dev.movespot.fyi/apis/konnect-api-request-analytics-2/versions/df5e182e-3b27-4baf-b6d7-0b0a459c9f64/schemas/UpstreamStatusCodeFilterByField"
---

> Full API specification: https://nov18-dev.movespot.fyi/apis/konnect-api-request-analytics-2/versions/df5e182e-3b27-4baf-b6d7-0b0a459c9f64.md

# Filter by upstream_status_code

## OpenAPI definition

```yaml
openapi: 3.0.2
info:
  title: Konnect API Request Analytics
  version: 2.0.0
servers:
  - url: https://us.api.konghq.com/v2
    description: United-States Production region
  - url: https://eu.api.konghq.com/v2
    description: Europe Production region
  - url: https://au.api.konghq.com/v2
    description: Australia Production region
  - url: https://me.api.konghq.com/v2
    description: Middle-East Production region
  - url: https://in.api.konghq.com/v2
    description: India Production region
  - url: https://sg.api.konghq.com/v2
    description: Singapore Production region
components:
  schemas:
    FilterMultiValueStatusCode:
      type: object
      properties:
        operator:
          $ref: "#/components/schemas/RequestsFilterType"
        value:
          description: |
            The codes to include in the results.
          type: array
          items:
            type: integer
            minimum: 0
            maximum: 999
      required:
        - operator
        - value
      title: Multiselect filters
    FilterSingleValueStatusCode:
      type: object
      properties:
        operator:
          $ref: "#/components/schemas/RequestsFilterTypeEquals"
        value:
          description: |
            The code to include in the results.
          type: integer
          maximum: 999
          minimum: 0
      required:
        - operator
        - value
      title: Single select filters
    FilterEmpty:
      type: object
      properties:
        operator:
          $ref: "#/components/schemas/RequestsFilterTypeEmpty"
      required:
        - operator
      title: Empty filters
    RequestsFilterType:
      description: The type of filter to apply.  `in` filters will limit results to
        only the specified values, while `not_in` filters will exclude the
        specified values.
      type: string
      enum:
        - in
        - not_in
    RequestsFilterTypeEquals:
      description: The type of filter to apply.
      type: string
      enum:
        - =
        - "!="
    RequestsFilterTypeEmpty:
      description: The type of filter to apply.
      type: string
      enum:
        - empty
        - not_empty
    UpstreamStatusCodeFilterByField:
      allOf:
        - type: object
          properties:
            field:
              description: The field to filter.
              type: string
              enum:
                - upstream_status_code
          required:
            - field
        - oneOf:
            - $ref: "#/components/schemas/FilterMultiValueStatusCode"
            - $ref: "#/components/schemas/FilterSingleValueStatusCode"
            - $ref: "#/components/schemas/FilterEmpty"
      title: Filter by upstream_status_code
```
