update feature flag
PUT
/api/v1/feature-flagsController:
github.com/raghavyuva/nixopus-api/internal/features/feature-flags/controller.(*FeatureFlagController).UpdateFeatureFlag
Middlewares:
github.com/go-fuego/fuego.defaultLogger.middlewaregithub.com/raghavyuva/nixopus-api/internal/routes.(*Router).SetupRoutes.(*Router).setupAuthentication.func2github.com/raghavyuva/nixopus-api/internal/routes.(*Router).applyMiddleware.func1
Parameters
Header Parameters
Accept
Typestring
Responses
OK
JSON
{
"message": "string",
"status": "string"
}
Samples
cURL
curl -X PUT http://localhost/api/v1/feature-flagsJavaScript
fetch("http://localhost/api/v1/feature-flags", { method: "PUT" })
.then(response => response.json())
.then(data => console.log(data));PHP
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://localhost/api/v1/feature-flags");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;Python
import requests
response = requests.put("http://localhost/api/v1/feature-flags")
print(response.json())