Info
Endpoint added: PATCH /accounts/{}/flagship/apps/{}/flags/{}
openapi:PATCH /accounts/{}/flagship/apps/{}/flags/{}::operation.endpoint-added- Product
- Cloudflare API
- Source
- Repository Spec
- Change kind
- Endpoint Added
- Detected
- Last updated
Deterministic evidence
Before / after
Extracted from Cloudflare's published contract. Shows the whole path item — a narrower excerpt was not available for this change. Open the source ↗
{
{
"delete": {
"operationId": "flagship_patch_flag",
"operationId": "flagship_delete_flag",
"parameters": [
"parameters": [
{
{
"in": "path",
"in": "path",
"name": "account_id",
"name": "account_id",
"required": true,
"required": true,
"schema": {
"schema": {
"type": "string"
"type": "string"
}
}
},
},
{
{
"in": "path",
"in": "path",
"name": "app_id",
"name": "app_id",
"required": true,
"required": true,
"schema": {
"schema": {
"type": "string"
"type": "string"
}
}
},
},
{
{
"in": "path",
"in": "path",
"name": "flag_key",
"name": "flag_key",
"required": true,
"required": true,
"schema": {
"schema": {
"type": "string"
"type": "string"
}
}
}
}
],
],
"requestBody": {
"responses": {
"content": {
"200": {
"application/json": {
"content": {
"schema": {
"application/json": {
"additionalProperties": false,
"schema": {
"properties": {
"properties": {
"default_variation": {
"errors": {
"minLength": 1,
"items": {
"type": "string"
"properties": {
},
"message": {
"enabled": {
"type": "string"
"type": "boolean"
}
},
},
"metadata": {
"required": [
"additionalProperties": {
"message"
"anyOf": [
],
{
"type": "object"
"type": "boolean"
},
},
"type": "array"
{
},
"type": "string"
"messages": {
},
"items": {
{
"properties": {
"type": "number"
"message": {
}
"type": "string"
]
}
},
},
"maxProperties": 32,
"required": [
"nullable": true,
"message"
"type": "object"
],
}
"type": "object"
},
},
"type": "object"
"type": "array"
}
},
}
"result": {
},
"properties": {
"required": true
"key": {
},
"type": "string"
"responses": {
}
"200": {
},
"content": {
"required": [
"application/json": {
"key"
"schema": {
],
"properties": {
"type": "object"
"errors": {
},
"items": {
"success": {
"properties": {
"type": "boolean"
"message": {
}
"type": "string"
},
}
"required": [
},
"success",
"required": [
"result",
"message"
"errors",
],
"messages"
"type": "object"
],
},
"type": "object"
"type": "array"
}
},
}
"messages": {
}
"items": {
},
"properties": {
"400": {
"message": {
"content": {
"type": "string"
"application/json": {
}
"schema": {
},
"$ref": "#/components/schemas/flagship_Error"
"required": [
}
"message"
}
],
}
"type": "object"
},
},
"401": {
"type": "array"
"content": {
},
"application/json": {
"result": {
"schema": {
"$ref": "#/components/schemas/flagship_Flag"
"$ref": "#/components/schemas/flagship_Error"
},
}
"success": {
}
"type": "boolean"
}
}
},
},
"403": {
"required": [
"content": {
"success",
"application/json": {
"result",
"schema": {
"errors",
"$ref": "#/components/schemas/flagship_Error"
"messages"
}
],
}
"type": "object"
}
}
},
}
"404": {
}
"content": {
},
"application/json": {
"400": {
"schema": {
"content": {
"$ref": "#/components/schemas/flagship_Error"
"application/json": {
}
"schema": {
}
"$ref": "#/components/schemas/flagship_Error"
}
}
},
}
"429": {
}
"content": {
},
"application/json": {
"401": {
"schema": {
"content": {
"$ref": "#/components/schemas/flagship_Error"
"application/json": {
}
"schema": {
}
"$ref": "#/components/schemas/flagship_Error"
}
}
},
}
"500": {
}
"content": {
},
"application/json": {
"403": {
"schema": {
"content": {
"$ref": "#/components/schemas/flagship_Error"
"application/json": {
}
"schema": {
}
"$ref": "#/components/schemas/flagship_Error"
}
}
}
}
},
}
"security": [
},
{
"404": {
"api_token": []
"content": {
},
"application/json": {
{
"schema": {
"api_email": [],
"$ref": "#/components/schemas/flagship_Error"
"api_key": []
}
}
}
],
}
"tags": [
},
"Flags"
"429": {
],
"content": {
"x-api-token-group": [
"application/json": {
"Flagship Write"
"schema": {
],
"$ref": "#/components/schemas/flagship_Error"
"x-cfPermissionsRequired": {
}
"enum": [
}
"com.cloudflare.api.account.flagship.app.update"
}
]
},
},
"500": {
"x-cfPlanAvailability": {
"content": {
"business": true,
"application/json": {
"enterprise": true,
"schema": {
"free": true,
"$ref": "#/components/schemas/flagship_Error"
"pro": true
}
},
}
"x-fern-availability": "beta",
}
"x-fern-sdk-group-name": "flagship.apps.flags",
}
"x-fern-sdk-method-name": "delete",
},
"x-forge-require-confirmation": "Delete this feature flag? After the deletion propagates, evaluation requests can no longer resolve it. This action cannot be undone."
"security": [
},
{
"get": {
"api_token": []
"operationId": "flagship_get_flag",
},
"parameters": [
{
{
"api_email": [],
"in": "path",
"api_key": []
"name": "account_id",
}
"required": true,
],
"schema": {
"tags": [
"type": "string"
"Flags"
}
],
},
"x-api-token-group": [
{
"Flagship Write"
"in": "path",
],
"name": "app_id",
"x-cfPermissionsRequired": {
"required": true,
"enum": [
"schema": {
"com.cloudflare.api.account.flagship.app.update"
"type": "string"
]
}
},
},
"x-cfPlanAvailability": {
{
"business": true,
"in": "path",
"enterprise": true,
"name": "flag_key",
"free": true,
"required": true,
"pro": true
"schema": {
},
"type": "string"
"x-fern-availability": "beta",
}
"x-fern-sdk-group-name": "flagship.apps.flags",
}
"x-fern-sdk-method-name": "patch"
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"properties": {
"errors": {
"items": {
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
],
"type": "object"
},
"type": "array"
},
"messages": {
"items": {
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
],
"type": "object"
},
"type": "array"
},
"result": {
"$ref": "#/components/schemas/flagship_Flag"
},
"success": {
"type": "boolean"
}
},
"required": [
"success",
"result",
"errors",
"messages"
],
"type": "object"
}
}
}
},
"400": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/flagship_Error"
}
}
}
},
"401": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/flagship_Error"
}
}
}
},
"403": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/flagship_Error"
}
}
}
},
"404": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/flagship_Error"
}
}
}
},
"429": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/flagship_Error"
}
}
}
},
"500": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/flagship_Error"
}
}
}
}
},
"security": [
{
"api_token": []
},
{
"api_email": [],
"api_key": []
}
],
"tags": [
"Flags"
],
"x-api-token-group": [
"Flagship Read",
"Flagship Write"
],
"x-cfPermissionsRequired": {
"enum": [
"com.cloudflare.api.account.flagship.app.read"
]
},
"x-cfPlanAvailability": {
"business": true,
"enterprise": true,
"free": true,
"pro": true
},
"x-fern-availability": "beta",
"x-fern-sdk-group-name": "flagship.apps.flags",
"x-fern-sdk-method-name": "get"
},
"put": {
"operationId": "flagship_update_flag",
"parameters": [
{
"in": "path",
"name": "account_id",
"required": true,
"schema": {
"type": "string"
}
},
{
"in": "path",
"name": "app_id",
"required": true,
"schema": {
"type": "string"
}
},
{
"in": "path",
"name": "flag_key",
"required": true,
"schema": {
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"additionalProperties": false,
"properties": {
"default_variation": {
"minLength": 1,
"type": "string"
},
"enabled": {
"type": "boolean"
},
"key": {
"maxLength": 64,
"minLength": 1,
"pattern": "^[a-zA-Z0-9_-]+$",
"type": "string"
},
"rules": {
"items": {
"additionalProperties": false,
"properties": {
"conditions": {
"items": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"attribute": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"operator": {
"enum": [
"equals",
"not_equals",
"greater_than",
"less_than",
"greater_than_or_equals",
"less_than_or_equals",
"contains",
"starts_with",
"ends_with",
"in",
"not_in",
"has",
"not_has"
],
"type": "string"
},
"value": {
"$ref": "#/components/schemas/flagship_JsonValue"
}
},
"required": [
"attribute",
"operator",
"value"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"clauses": {
"items": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"attribute": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"operator": {
"enum": [
"equals",
"not_equals",
"greater_than",
"less_than",
"greater_than_or_equals",
"less_than_or_equals",
"contains",
"starts_with",
"ends_with",
"in",
"not_in",
"has",
"not_has"
],
"type": "string"
},
"value": {
"$ref": "#/components/schemas/flagship_JsonValue"
}
},
"required": [
"attribute",
"operator",
"value"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"clauses": {
"items": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"attribute": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"operator": {
"enum": [
"equals",
"not_equals",
"greater_than",
"less_than",
"greater_than_or_equals",
"less_than_or_equals",
"contains",
"starts_with",
"ends_with",
"in",
"not_in",
"has",
"not_has"
],
"type": "string"
},
"value": {
"$ref": "#/components/schemas/flagship_JsonValue"
}
},
"required": [
"attribute",
"operator",
"value"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"clauses": {
"items": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"attribute": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"operator": {
"enum": [
"equals",
"not_equals",
"greater_than",
"less_than",
"greater_than_or_equals",
"less_than_or_equals",
"contains",
"starts_with",
"ends_with",
"in",
"not_in",
"has",
"not_has"
],
"type": "string"
},
"value": {
"$ref": "#/components/schemas/flagship_JsonValue"
}
},
"required": [
"attribute",
"operator",
"value"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"clauses": {
"items": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"attribute": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"operator": {
"enum": [
"equals",
"not_equals",
"greater_than",
"less_than",
"greater_than_or_equals",
"less_than_or_equals",
"contains",
"starts_with",
"ends_with",
"in",
"not_in",
"has",
"not_has"
],
"type": "string"
},
"value": {
"$ref": "#/components/schemas/flagship_JsonValue"
}
},
"required": [
"attribute",
"operator",
"value"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"clauses": {
"items": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"attribute": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"operator": {
"enum": [
"equals",
"not_equals",
"greater_than",
"less_than",
"greater_than_or_equals",
"less_than_or_equals",
"contains",
"starts_with",
"ends_with",
"in",
"not_in",
"has",
"not_has"
],
"type": "string"
},
"value": {
"$ref": "#/components/schemas/flagship_JsonValue"
}
},
"required": [
"attribute",
"operator",
"value"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"clauses": {
"items": {
"$ref": "#/components/schemas/flagship_JsonValue"
},
"minItems": 1,
"type": "array"
},
"logical_operator": {
"enum": [
"AND",
"OR"
],
"type": "string"
}
},
"required": [
"logical_operator",
"clauses"
],
"type": "object"
}
]
},
"minItems": 1,
"type": "array"
},
"logical_operator": {
"enum": [
"AND",
"OR"
],
"type": "string"
}
},
"required": [
"logical_operator",
"clauses"
],
"type": "object"
}
]
},
"minItems": 1,
"type": "array"
},
"logical_operator": {
"enum": [
"AND",
"OR"
],
"type": "string"
}
},
"required": [
"logical_operator",
"clauses"
],
"type": "object"
}
]
},
"minItems": 1,
"type": "array"
},
"logical_operator": {
"enum": [
"AND",
"OR"
],
"type": "string"
}
},
"required": [
"logical_operator",
"clauses"
],
"type": "object"
}
]
},
"minItems": 1,
"type": "array"
},
"logical_operator": {
"enum": [
"AND",
"OR"
],
"type": "string"
}
},
"required": [
"logical_operator",
"clauses"
],
"type": "object"
}
]
},
"minItems": 1,
"type": "array"
},
"logical_operator": {
"enum": [
"AND",
"OR"
],
"type": "string"
}
},
"required": [
"logical_operator",
"clauses"
],
"type": "object"
}
]
},
"type": "array"
},
"priority": {
"minimum": 1,
"type": "integer"
},
"rollout": {
"additionalProperties": false,
"properties": {
"attribute": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"percentage": {
"maximum": 100,
"minimum": 0,
"multipleOf": 0.01,
"type": "number"
}
},
"required": [
"percentage"
],
"type": "object"
},
"serve_variation": {
"minLength": 1,
"type": "string"
}
},
"required": [
"priority",
"conditions",
"serve_variation"
],
"type": "object"
},
"type": "array"
},
"type": {
"deprecated": true,
"enum": [
"boolean",
"string",
"number",
"json"
],
"type": "string",
"x-stainless-terraform-configurability": "computed_optional"
},
"variations": {
"additionalProperties": {
"$ref": "#/components/schemas/flagship_JsonValue"
},
"type": "object"
}
},
"required": [
"key",
"default_variation",
"variations",
"rules",
"enabled"
],
"type": "object"
}
}
},
"required": true
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"properties": {
"errors": {
"items": {
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
],
"type": "object"
},
"type": "array"
},
"messages": {
"items": {
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
],
"type": "object"
},
"type": "array"
},
"result": {
"$ref": "#/components/schemas/flagship_Flag"
},
"success": {
"type": "boolean"
}
},
"required": [
"success",
"result",
"errors",
"messages"
],
"type": "object"
}
}
}
},
"400": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/flagship_Error"
}
}
}
},
"401": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/flagship_Error"
}
}
}
},
"403": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/flagship_Error"
}
}
}
},
"404": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/flagship_Error"
}
}
}
},
"429": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/flagship_Error"
}
}
}
},
"500": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/flagship_Error"
}
}
}
}
},
"security": [
{
"api_token": []
},
{
"api_email": [],
"api_key": []
}
],
"tags": [
"Flags"
],
"x-api-token-group": [
"Flagship Write"
],
"x-cfPermissionsRequired": {
"enum": [
"com.cloudflare.api.account.flagship.app.update"
]
},
"x-cfPlanAvailability": {
"business": true,
"enterprise": true,
"free": true,
"pro": true
},
"x-fern-availability": "beta",
"x-fern-sdk-group-name": "flagship.apps.flags",
"x-fern-sdk-method-name": "update"
}
}
}
Monitored for you
Does this change affect your integration?
Choose the operations and fields your services use. detektu matches Cloudflare findings to that declared usage so your team can review the relevant evidence. No agent or repository access required.