Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

API v1 Update A Specific Feature

Darren Oakley edited this page Oct 18, 2021 · 1 revision

PUT /v1/groups/{group_name}/features/{feature_name}

http://bandiera.example.com/api/v1/groups/{group_name}/features/{feature_name}

PUTing a request to this endpoint allows you to update a feature. Upon success, it will return a representation of the feature you have just updated.

Example Request:

The following curl request would update the feature "show-article-metrics" (in the group "pubserv"):

curl -d 'feature[group]=pubserv&feature[name]=show-article-metrics&feature[description]=Updated+feature+desc&feature[enabled]=false' \
  -X PUT http://bandiera.example.com/api/v1/groups/pubserv/features/show-article-metrics

Example Response:

{
    "feature": {
        "description": "Show new feature?",
        "enabled": false,
        "group": "pubserv",
        "name": "show-new-feature"
    }
}