> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a feature flag.

> Stores the supplied feature-flag state and metadata for a recognised developer. The change completes
before the response. This operation does not declare whether an unknown identifier is rejected or created,
so clients should not rely on either outcome.



## OpenAPI

````yaml /risk-and-pricing/atoti-risk-services/apis-endpoints/openapi/openapi.mintlify.json put /api/FeatureFlag/UpdateFeatureFlag
openapi: 3.0.4
info:
  title: Derivitec Api 1.0
  version: '1.0'
servers:
  - url: https://api.riskportal.activeviam.com
security:
  - oauth2: []
  - apikey: []
tags:
  - name: AdminUser
  - name: AtotiReport
  - name: AtotiSession
  - name: BloombergOAuth
  - name: Bond
  - name: BondYieldCurvePage
  - name: BookAccess
  - name: Books
  - name: Commodity
  - name: Counterparties
  - name: Currencies
  - name: Equity
  - name: EquityDividend
  - name: EquityPage
  - name: FeatureFlag
  - name: Fx
  - name: FxPage
  - name: GroupAccess
  - name: Home
  - name: LegacyPosition
  - name: MarketData
  - name: MarketDataProvider
  - name: MarketDataProviderAccess
  - name: Meta
  - name: Notification
  - name: Organisation
  - name: PnLReport
  - name: PortfolioAccess
  - name: Portfolios
  - name: Position
  - name: PositionFilter
  - name: PricingEnvironment
  - name: PricingEnvironmentAccess
  - name: RateAsset
  - name: RateAssetPage
  - name: Report
  - name: ReportDefinition
  - name: ReportHistoryLauncherQuery
  - name: ReportLauncher
  - name: ReportQuery
  - name: ReportQueryViewUser
  - name: ReportRestriction
  - name: ReportView
  - name: RiskReport
  - name: Tradable
  - name: TradeBooking
  - name: User
  - name: VarReport
  - name: VarReportQuery
  - name: YieldCurvePage
paths:
  /api/FeatureFlag/UpdateFeatureFlag:
    put:
      tags:
        - FeatureFlag
      summary: Update a feature flag.
      description: >-
        Stores the supplied feature-flag state and metadata for a recognised
        developer. The change completes

        before the response. This operation does not declare whether an unknown
        identifier is rejected or created,

        so clients should not rely on either outcome.
      operationId: UpdateFeatureFlag
      requestBody:
        description: >-
          JSON feature-flag payload with its GUID identifier and supported group
          and state values. No action-level default or additional format
          constraint is declared.
        content:
          application/json-patch+json:
            schema:
              $ref: '#/components/schemas/FeatureFlagDto'
          application/json:
            schema:
              $ref: '#/components/schemas/FeatureFlagDto'
          text/json:
            schema:
              $ref: '#/components/schemas/FeatureFlagDto'
          application/*+json:
            schema:
              $ref: '#/components/schemas/FeatureFlagDto'
      responses:
        '200':
          description: Returns the feature-flag payload after the update attempt.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FeatureFlagDto'
        '400':
          description: BadRequest
        '401':
          description: >-
            Returned when the authenticated caller is not recognised as a
            developer.
        '403':
          description: Forbidden
      security:
        - oauth2: []
        - apikey: []
components:
  schemas:
    FeatureFlagDto:
      required:
        - $type
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the feature flag.
          format: uuid
          example: 5b184e51-8116-42a2-9f55-c2e8af0f5179
        name:
          type: string
          description: Display name of the feature flag.
          nullable: true
          example: Example feature
        description:
          type: string
          description: User-facing description of the feature flag.
          nullable: true
          example: Controls availability of an example feature.
        group:
          enum:
            - equity
            - fx
            - fixed_income
          type: string
          description: Feature area to which the flag belongs.
        is_active:
          type: boolean
          description: Whether the feature flag is active.
          example: true
        $type:
          type: string
          enum:
            - Derivitec.Core.Model.FeatureFlagDto, Derivitec.Core.Model
      additionalProperties: false
      description: Feature-flag record used to read or update feature availability.
  securitySchemes:
    oauth2:
      type: oauth2
      description: >-
        OAuth2 access-token requested from AWS Cognito and provided as a Auth
        Bearer header
      flows:
        implicit:
          authorizationUrl: https://auth.riskportal.derivitec.com/oauth2/authorize
          scopes: {}
    apikey:
      type: apiKey
      description: API-Key requested via the site and provided as a header
      name: x-api-key
      in: header

````