Skip to main content

Update project enterprise settings

PUT 

<your-unleash-url>/api/admin/projects/:projectId/settings

Update project enterprise settings with new values. Any fields not provided are ignored.

Request

Path Parameters

    projectId stringrequired

Bodyrequired

updateProjectEnterpriseSettingsSchema

    modestring

    A mode of the project affecting what actions are possible in this project

    Possible values: [open, protected, private]

    Example: open
    featureNaming object

    Create a feature naming pattern

    patternstringnullablerequired

    A JavaScript regular expression pattern, without the start and end delimiters. Optional flags are not allowed.

    Example: ^[A-Za-z]+\.[A-Za-z]+\.[A-Za-z0-9-]+$
    examplestringnullable

    An example of a feature name that matches the pattern. Must itself match the pattern supplied.

    Example: dx.feature1.1-135
    descriptionstringnullable

    A description of the pattern in a human-readable format. Will be shown to users when they create a new feature flag.

    Example: <project>.<featureName>.<ticket> The flag name should contain the project name, the feature name, and the ticket number, each separated by a dot.

Responses

This response has no body.

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
curl -L -X PUT '<your-unleash-url>/api/admin/projects/:projectId/settings' \
-H 'Content-Type: application/json' \
-H 'Authorization: <Authorization>' \
-d '{
"mode": "open",
"featureNaming": {
"pattern": "^[A-Za-z]+\\.[A-Za-z]+\\.[A-Za-z0-9-]+$",
"example": "dx.feature1.1-135",
"description": "<project>.<featureName>.<ticket>\n\nThe flag name should contain the project name, the feature name, and the ticket number, each separated by a dot."
}
}'
Request Collapse all
Base URL
<your-unleash-url>
Auth
Parameters
— pathrequired
Body required
{
  "mode": "open",
  "featureNaming": {
    "pattern": "^[A-Za-z]+\\.[A-Za-z]+\\.[A-Za-z0-9-]+$",
    "example": "dx.feature1.1-135",
    "description": "<project>.<featureName>.<ticket>\n\nThe flag name should contain the project name, the feature name, and the ticket number, each separated by a dot."
  }
}
ResponseClear

Click the Send API Request button above and see the response here!