v5

latestOpenAPI 3.0.3Apache 2.0raw.githubusercontent.com2026-02-283466592.5 MB
Projects

Update flag default for project

Update a flag default. Updating a flag default uses a JSON patch or JSON merge patch representation of the desired changes. To learn more, read Updates.

patch/api/v2/projects/{projectKey}/flag-defaults

Path parameters

projectKeystring string required

The project key

The project key

Request body

opstring required

The type of operation to perform

pathstring required

A JSON Pointer string specifying the part of the document to operate on

valuestring

A JSON value used in "add", "replace", and "test" operations

Example request

[
  {
    "op": "replace",
    "path": "/exampleField",
    "value": "new example value"
  }
]

Response

Flag default response

_linksobject

The location and content type of related resources

tagsstring[] required

A list of default tags for each flag

temporaryboolean required

Whether the flag should be temporary by default

Example response

{
  "tags": [
    "tag-1",
    "tag-2"
  ],
  "temporary": true,
  "booleanDefaults": {
    "trueDisplayName": "True",
    "falseDisplayName": "False",
    "trueDescription": "serve true",
    "falseDescription": "serve false",
    "offVariation": 1
  },
  "defaultClientSideAvailability": {
    "usingMobileKey": true,
    "usingEnvironmentId": true
  }
}