CloudBees · Schema

api.flag.GetFlagResponse

CI/CDContinuous DeliveryContinuous IntegrationDeveloper ToolsDevOpsFeature FlagsFeature ManagementJenkinsRelease OrchestrationSoftware Delivery

Properties

Name Type Description
flag object The feature flag object containing its current configuration and metadata.
View JSON Schema on GitHub

JSON Schema

cloudbees-api-flag-get-flag-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/cloudbees/main/json-schema/cloudbees-api-flag-get-flag-response-schema.json",
  "title": "api.flag.GetFlagResponse",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudbees-flags-api-openapi.yml#/components/schemas/api.flag.GetFlagResponse",
  "type": "object",
  "properties": {
    "flag": {
      "allOf": [
        {
          "$ref": "#/$defs/api.flag.Flag"
        }
      ],
      "description": "The feature flag object containing its current configuration and metadata."
    }
  },
  "$defs": {
    "api.flag.Flag": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier of the feature flag."
        },
        "name": {
          "type": "string",
          "description": "The unique name of the feature flag within the application."
        },
        "description": {
          "type": "string",
          "description": "A human-readable description of the feature flag's purpose."
        },
        "flagType": {
          "enum": [
            "Boolean",
            "String",
            "Number"
          ],
          "type": "string",
          "description": "The value type of the flag. One of Boolean, String, or Number."
        },
        "variants": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The valid variant values for String or Number flags. Empty for Boolean flags."
        },
        "resourceId": {
          "type": "string",
          "description": "The unique identifier of the application that owns this feature flag."
        },
        "labels": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Labels attached to this feature flag for organizational or filtering purposes."
        },
        "isPermanent": {
          "type": "boolean",
          "description": "When true, the flag is marked permanent and excluded from stale flag cleanup."
        },
        "cascUrl": {
          "type": "string",
          "description": "The CasC (Configuration as Code) URL for this feature flag."
        },
        "created": {
          "type": "string",
          "description": "The date and time at which the feature flag was created.",
          "format": "date-time"
        },
        "configStates": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/api.flag.FlagConfigurationState"
          },
          "description": "The enabled or disabled state of this flag per environment. Populated only when environment IDs are requested."
        },
        "updated": {
          "type": "string",
          "description": "The date and time at which the feature flag was last updated.",
          "format": "date-time"
        }
      }
    },
    "api.flag.FlagConfigurationState": {
      "type": "object",
      "properties": {
        "environmentId": {
          "type": "string",
          "description": "The unique identifier of the environment this state applies to."
        },
        "enabled": {
          "type": "boolean",
          "description": "Whether the feature flag is enabled in this environment."
        },
        "updated": {
          "type": "string",
          "description": "The date and time at which this configuration state was last updated.",
          "format": "date-time"
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/cloudbees-api-flag-get-flag-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?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.