CloudBees Flag configurations API

Set flag state (enabled or disabled) and targeting rules for a specific environment to determine which users or segments receive each variation.

Business capability
Feature Flag Management BC-4210.50

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v2/applications/{applicationId}/environments/{environmentId}/configuration List all flag configurations in an environment · List flag configurations for an environment #
Ask an LLM
“How can I see how every feature flag is configured in one environment?”
“What are the targeting rules for all flags in my staging environment?”
Tell an agent
List the configurations of all flags in environment {environmentId} of app {applicationId}.
Show every flag's settings for environment {environmentId} in application {applicationId}.
GET /v2/applications/{applicationId}/flags/{flagId}/configuration/environments/{environmentId} Get one flag's configuration in an environment · Get flag configuration for an environment #
Ask an LLM
“How do I see the targeting conditions and default value of one flag in production?”
“Is a specific feature flag's configuration using variants in a given environment?”
Tell an agent
Show the configuration of flag {flagId} in environment {environmentId} of app {applicationId}.
Get the default value and conditions for flag {flagId} in environment {environmentId}, app {applicationId}.
PUT /v2/applications/{applicationId}/flags/{flagId}/configuration/environments/{environmentId} Replace a flag's full configuration in an environment · Update flag configuration for an environment #
Ask an LLM
“How do I overwrite the entire configuration of a flag in one environment?”
“Can I set a new seed for percentage splits when replacing a flag's configuration?”
Tell an agent
Replace the full configuration of flag {flagId} in environment {environmentId} of app {applicationId}.
Overwrite flag {flagId}'s config in env {environmentId}, app {applicationId}, with default value {defaultValue} and stickiness on {stickinessProperty}.
PATCH /v2/applications/{applicationId}/flags/{flagId}/configuration/environments/{environmentId} Change selected fields of a flag's configuration · Partially update flag configuration for an environment #
Ask an LLM
“Can I change just the default value of a flag in one environment without resending everything?”
“How do I tweak only the targeting conditions of a flag in an environment?”
Tell an agent
Change only the default value of flag {flagId} in environment {environmentId}, app {applicationId}, to {defaultValue}.
Patch flag {flagId} in env {environmentId} of app {applicationId} to turn variants on or off: {variantsEnabled}.
POST /v2/applications/{applicationId}/flags/{flagId}/configuration/environments/{environmentId}/configstate Turn a flag on or off in an environment · Update flag enabled state for an environment #
Ask an LLM
“How do I switch a feature flag on in production?”
“What's the quickest way to disable a flag in a single environment?”
Tell an agent
Enable flag {flagId} in environment {environmentId} of application {applicationId}.
Set flag {flagId}'s on/off state in env {environmentId}, app {applicationId}, to {enabled}.
POST /v2/applications/{applicationId}/flags/{flagId}/environment/{environmentId}/clone Copy a flag's configuration to other environments · Clone flag configuration to other environments #
Ask an LLM
“Can I copy a flag's setup from staging to other environments?”
“How do I reuse one environment's flag configuration elsewhere?”
Tell an agent
Clone flag {flagId}'s configuration from environment {environmentId} in app {applicationId} to other environments.
Copy the settings of flag {flagId} in source environment {environmentId} (app {applicationId}) to my target environments.

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/cloudbees:cloudbees-flag-configurations-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cloudbees-flag-configurations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: CloudBees Unify API (Current) Flag configurations API
  version: 1.0.0
  description: API documentation for CloudBees Unify's current, stable endpoints.
servers:
- url: https://api.cloudbees.io
  description: CloudBees Unify Production API
security:
- BearerAuth: []
tags:
- name: Flag configurations
  description: Set flag state (enabled or disabled) and targeting rules for a specific environment to determine which users or segments receive each variation.
paths:
  /v2/applications/{applicationId}/environments/{environmentId}/configuration:
    get:
      tags:
      - Flag configurations
      operationId: FlagConfigurationApi_ListFlagConfigurations
      parameters:
      - name: applicationId
        in: path
        description: Unique identifier of the application whose flag configurations are to be listed.
        required: true
        schema:
          type: string
      - name: environmentId
        in: path
        description: Unique identifier of the environment for which to list flag configurations.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api.flag.ListFlagConfigurationsResponse'
        default:
          description: Default error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/google.rpc.Status'
      summary: List flag configurations for an environment
      description: Returns the configurations of all feature flags within the specified environment of an application.
  /v2/applications/{applicationId}/flags/{flagId}/configuration/environments/{environmentId}:
    get:
      tags:
      - Flag configurations
      operationId: FlagConfigurationApi_GetFlagConfiguration
      parameters:
      - name: applicationId
        in: path
        description: Unique identifier of the application that owns the feature flag.
        required: true
        schema:
          type: string
      - name: flagId
        in: path
        description: Unique identifier of the feature flag whose configuration is to be retrieved.
        required: true
        schema:
          type: string
      - name: environmentId
        in: path
        description: Unique identifier of the environment for which to retrieve the flag configuration.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api.flag.GetFlagConfigurationResponse'
        default:
          description: Default error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/google.rpc.Status'
      summary: Get flag configuration for an environment
      description: Returns the configuration of a feature flag for the specified environment within an application.
    put:
      tags:
      - Flag configurations
      operationId: FlagConfigurationApi_UpdateFlagConfiguration
      parameters:
      - name: applicationId
        in: path
        description: Unique identifier of the application that owns the feature flag.
        required: true
        schema:
          type: string
      - name: flagId
        in: path
        description: Unique identifier of the feature flag to update.
        required: true
        schema:
          type: string
      - name: environmentId
        in: path
        description: Unique identifier of the environment for which to update the flag configuration.
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/api.flag.FlagConfiguration'
        required: true
      responses:
        '200':
          description: OK
          content: {}
        default:
          description: Default error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/google.rpc.Status'
      summary: Update flag configuration for an environment
      description: Replaces the full configuration of a feature flag for the specified environment within an application.
    patch:
      tags:
      - Flag configurations
      operationId: FlagConfigurationApi_PatchFlagConfiguration
      parameters:
      - name: applicationId
        in: path
        description: Unique identifier of the application that owns the feature flag.
        required: true
        schema:
          type: string
      - name: flagId
        in: path
        description: Unique identifier of the feature flag to update.
        required: true
        schema:
          type: string
      - name: environmentId
        in: path
        description: Unique identifier of the environment for which to update the flag configuration.
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/api.flag.FlagConfigurationOptional'
        required: true
      responses:
        '200':
          description: OK
          content: {}
        default:
          description: Default error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/google.rpc.Status'
      summary: Partially update flag configuration for an environment
      description: Updates one or more fields of a feature flag configuration for the specified environment. Only fields included in the request body are updated.
  /v2/applications/{applicationId}/flags/{flagId}/configuration/environments/{environmentId}/configstate:
    post:
      tags:
      - Flag configurations
      operationId: FlagConfigurationApi_UpdateFlagConfigurationConfigState
      parameters:
      - name: applicationId
        in: path
        description: Unique identifier of the application that owns the feature flag.
        required: true
        schema:
          type: string
      - name: flagId
        in: path
        description: Unique identifier of the feature flag whose enabled state is to be updated.
        required: true
        schema:
          type: string
      - name: environmentId
        in: path
        description: Unique identifier of the environment for which to update the flag's enabled state.
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/api.flag.FlagConfigState'
        required: true
      responses:
        '200':
          description: OK
          content: {}
        default:
          description: Default error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/google.rpc.Status'
      summary: Update flag enabled state for an environment
      description: Enables or disables a feature flag for the specified environment within an application.
  /v2/applications/{applicationId}/flags/{flagId}/environment/{environmentId}/clone:
    post:
      tags:
      - Flag configurations
      operationId: FlagConfigurationApi_CloneFlagConfiguration
      parameters:
      - name: applicationId
        in: path
        description: Unique identifier of the application that owns the feature flag.
        required: true
        schema:
          type: string
      - name: flagId
        in: path
        description: Unique identifier of the feature flag whose configuration is to be cloned.
        required: true
        schema:
          type: string
      - name: environmentId
        in: path
        description: Unique identifier of the source environment whose configuration will be copied.
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: string
        required: true
      responses:
        '200':
          description: OK
          content: {}
        default:
          description: Default error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/google.rpc.Status'
      summary: Clone flag configuration to other environments
      description: Copies the feature flag configuration from a source environment to one or more target environments.
components:
  schemas:
    google.protobuf.ListValue:
      description: "`ListValue` is a wrapper around a repeated field of values.\n\n The JSON representation for `ListValue` is JSON array."
      type: array
      items: {}
    api.flag.FlagConfigState:
      type: object
      properties:
        enabled:
          type: boolean
          description: Whether the feature flag is enabled. Set to true to enable the flag, or false to disable it.
    api.flag.GetFlagConfigurationResponse:
      type: object
      properties:
        configuration:
          allOf:
          - $ref: '#/components/schemas/api.flag.FlagConfiguration'
          description: The feature flag configuration for the specified environment.
    google.rpc.Status:
      type: object
      properties:
        code:
          type: integer
          description: The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
          format: int32
        message:
          type: string
          description: A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
        details:
          type: array
          items:
            $ref: '#/components/schemas/google.protobuf.Any'
          description: A list of messages that carry the error details.  There is a common set of message types for APIs to use.
      description: 'The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).'
    google.protobuf.Any:
      type: object
      properties:
        '@type':
          type: string
          description: The type of the serialized message.
      additionalProperties: true
      description: Contains an arbitrary serialized message along with a @type that describes the type of the serialized message.
    google.protobuf.Value:
      description: Represents a dynamically typed value which can be either null, a number, a string, a boolean, a recursive struct value, or a list of values.
    api.flag.FlagConfiguration:
      type: object
      properties:
        enabled:
          type: boolean
          description: Whether the feature flag is enabled in this environment.
        defaultValue:
          allOf:
          - $ref: '#/components/schemas/google.protobuf.Value'
          description: The default value returned to users who do not match any targeting condition.
        conditions:
          allOf:
          - $ref: '#/components/schemas/google.protobuf.ListValue'
          description: The list of targeting conditions that determine which users receive specific flag values.
        seed:
          type: string
          description: Random seed value used in percentage based (split) configurations to avoid statistical bias when selecting the flag value.
        stickinessProperty:
          type: string
          description: Name of the Custom Property that will be used to ensure consistent flag evaluations for percentage based  (split) configurations.
        variantsEnabled:
          type: boolean
          description: Whether multivariate variants are enabled for this flag configuration.
        resourceId:
          type: string
          description: The unique identifier of the resource this configuration belongs to.
        cascUrl:
          type: string
          description: The CloudBees CasC (Configuration as Code) URL associated with this flag configuration.
        created:
          type: string
          description: The date and time when this flag configuration was created.
          format: date-time
        updated:
          type: string
          description: The date and time when this flag configuration was last updated.
          format: date-time
    api.flag.FlagConfigurationOptional:
      type: object
      properties:
        enabled:
          type: boolean
          description: Whether the feature flag is enabled in this environment. Omit to leave the current value unchanged.
        defaultValue:
          allOf:
          - $ref: '#/components/schemas/google.protobuf.Value'
          description: The default value returned to users who do not match any targeting condition. Omit to leave the current value unchanged.
        conditions:
          allOf:
          - $ref: '#/components/schemas/google.protobuf.ListValue'
          description: The list of targeting conditions that determine which users receive specific flag values. Omit to leave the current value unchanged.
        stickinessProperty:
          type: string
          description: The user attribute used to ensure consistent flag evaluation for the same user. Omit to leave the current value unchanged.
        variantsEnabled:
          type: boolean
          description: Whether multivariate variants are enabled. Omit to leave the current value unchanged.
    api.flag.ListFlagConfigurationsResponse:
      type: object
      properties:
        configurations:
          type: array
          items:
            $ref: '#/components/schemas/api.flag.FlagConfigurationEnvironment'
          description: The list of feature flag configurations for the specified environment.
    api.flag.FlagConfigurationEnvironment:
      type: object
      properties:
        flagId:
          type: string
          description: Unique identifier of the feature flag this configuration belongs to.
        flagName:
          type: string
          description: Name of the feature flag.
        description:
          type: string
          description: Description of the feature flag.
        labels:
          type: array
          items:
            type: string
          description: Labels assigned to the feature flag for organization and filtering.
        created:
          type: string
          description: The date and time when the flag configuration was created.
          format: date-time
        updated:
          type: string
          description: The date and time when the flag configuration was last updated.
          format: date-time
        configuration:
          allOf:
          - $ref: '#/components/schemas/api.flag.FlagConfiguration'
          description: The feature flag configuration data for this environment.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: CloudBees Unify API access token or personal access token
x-tagGroups:
- name: Unify core
  tags:
  - Components
  - Environments
  - Organizations
  - Teams
  - Users
- name: Feature management
  tags:
  - Flags
  - Flag configurations
  - Flag custom properties
  - Target groups
  - Flag lifecycle