Projects

Create or update flag defaults for project

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

Create or update flag defaults for a project.

Authorization

ApiKey read, write
Authorization<token>

In: header

Scope: read, write

Path Parameters

projectKey*string

The project key

Formatstring

Request Body

application/json

tags*array<string>

A list of default tags for each flag

temporary*boolean

Whether the flag should be temporary by default

booleanDefaults*
defaultClientSideAvailability*

Which client-side SDK types can use this flag by default.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/api/v2/projects/string/flag-defaults" \  -H "Content-Type: application/json" \  -d '{    "tags": [      "tag-1",      "tag-2"    ],    "temporary": true,    "booleanDefaults": {      "trueDisplayName": "True",      "falseDisplayName": "False",      "trueDescription": "serve true",      "falseDescription": "serve false",      "onVariation": 0,      "offVariation": 1    },    "defaultClientSideAvailability": {      "usingMobileKey": true,      "usingEnvironmentId": true    }  }'
{  "_links": {    "property1": {      "href": "string",      "type": "string"    },    "property2": {      "href": "string",      "type": "string"    }  },  "tags": [    "tag-1",    "tag-2"  ],  "temporary": true,  "booleanDefaults": {    "trueDisplayName": "True",    "falseDisplayName": "False",    "trueDescription": "serve true",    "falseDescription": "serve false",    "onVariation": 0,    "offVariation": 1  },  "defaultClientSideAvailability": {    "usingMobileKey": true,    "usingEnvironmentId": true  }}