Update a Feature Flag

Request URI for Sub Account

PATCH /accounts/123456/features/1

Sample Request Body

{
    "name": "Feature Flag Name",
    "description": "Feature Flag Description",
    "goals": [
        {
            "metricId": 123456
        }
    ],
    "variables": [
        {
            "variableName": "variable1",
            "dataType": "string",
            "defaultValue": "Hello World"
        },
        {
            "variableName": "variable2",
            "dataType": "integer",
            "defaultValue": 10
        },
        {
            "variableName": "variable3",
            "dataType": "json",
            "defaultValue": {
                "name": "VWO",
                "product": "FME"
            }
        }
    ],
    "variations": [
        {
            "name": "variation-name",
            "key": "variation-key",
            "jsonContent": [
                {
                    "variableId": 1,
                    "value": "Hello World updated"
                },
                {
                    "variableId": 2,
                    "value": 20
                }
            ]
        }
    ]
}
Language
Credentials
Header
Click Try It! to start a request and see the response here!