---
title: "Update Conditions"
method: POST
path: "/{projectId}/conditions"
tags: ["projects"]
---

# Update Conditions

`POST /{projectId}/conditions`

## Path parameters

- `projectId` integer, required

## Request body

- ProjectSettings
  - `rate` integer, required
  - `conditionalCapture` boolean
  - `conditions` ProjectConditions[]
    - `conditionId` integer, nullable
    - `name` string, required
    - `captureRate` integer, required
    - `filters` union[]
      - union
        - SessionSearchFilterSchema
          - `isEvent` false
          - `value` union[]
            - union
              - …
          - `name` union, required
            - 'userOs' | 'userBrowser' | 'userBrowserVersion' | 'userDevice' | 'userDeviceType' | 'userCountry' | 'userCity' | 'userState' | 'userId' | 'distinct_id' | 'userAnonymousId' | 'referrer' | 'revId' | 'userOsIos' | 'userDeviceIos' | 'userCountryIos' | 'userIdIos' | 'userAnonymousIdIos' | 'revIdIos' | 'duration' | 'platform' | 'metadata' | 'issue' | 'eventsCount' | 'utmSource' | 'utmMedium' | 'utmCampaign' | 'thermalState' | 'mainThreadCPU' | 'viewComponent' | 'logEvent' | 'clickEvent' | 'memoryUsage'
            - string
          - `operator` union, required
            - 'is' | 'isAny' | 'on' | 'onAny' | 'isNot' | 'isUndefined' | 'notOn' | 'contains' | 'notContains' | 'startsWith' | 'endsWith' | 'regex'
            - '=' | '<' | '>' | '<=' | '>='
          - `source` union
            - 'js_exception' | 'bugsnag' | 'cloudwatch' | 'datadog' | 'newrelic' | 'rollbar' | 'sentry' | 'stackdriver' | 'sumologic'
            - string
          - `dataType` 'int' | 'float' | 'datetime' | 'string' | 'array' | 'tuple' | 'map' | 'nested'
          - `autoCaptured` boolean, nullable
        - SessionSearchEventSchema
          - `isEvent` true
          - `value` union[], required
            - union
              - …
          - `name` union, required
            - 'click' | 'input' | 'location' | 'custom' | 'request' | 'fetch' | 'graphql' | 'stateAction' | 'error' | 'tag' | 'clickMobile' | 'inputMobile' | 'viewMobile' | 'customMobile' | 'requestMobile' | 'errorMobile' | 'swipeMobile' | 'event' | 'incident' | 'clickCoordinates'
            - 'domComplete' | 'largestContentfulPaintTime' | 'ttfb' | 'avgCpuLoad' | 'avgMemoryUsage' | 'fetchFailed'
            - string
          - `operator` union, required
            - 'is' | 'isAny' | 'on' | 'onAny' | 'isNot' | 'isUndefined' | 'notOn' | 'contains' | 'notContains' | 'startsWith' | 'endsWith' | 'regex'
            - 'selectorIs' | 'selectorIsAny' | 'selectorIsNot' | 'selectorIsUndefined' | 'selectorContains' | 'selectorNotContains' | 'selectorStartsWith' | 'selectorEndsWith'
          - `source` union[], nullable
            - union
              - …
          - `sourceOperator` '=' | '<' | '>' | '<=' | '>='
          - `autoCaptured` boolean, nullable
          - `filters` RequestGraphqlFilterSchema[], nullable
            - `type` union, required
              - …
            - `value` union[], required
              - …
            - `operator` union, required
              - …
          - `properties` EventPropertiesSchema
            - `operator` 'and' | 'or', required
            - `filters` PropertyFilterSchema[], required
              - …

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/openreplay/apis/fastapi.md) · [All operations](https://skmtc.net/openreplay/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openreplay/fastapi/versions/4686e8023dc8/schema)
