Enable/Disable a feature flag

put

/admin/featureFlags/{flag}

Request

Path Parameters
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : allowed-parties
Type: array
Show Source
Back to Top

Response

Supported Media Types

200 Response

OK
Body ()
Root Schema : schema
Type: object
Show Source
Nested Schema : allowed-parties
Type: array
Show Source

400 Response

Bad Request
Body ()
Root Schema : Error
Type: object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)
Show Source

401 Response

Unauthorized
Body ()
Root Schema : Error
Type: object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)
Show Source

403 Response

Forbidden
Body ()
Root Schema : Error
Type: object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)
Show Source

404 Response

Not Found
Body ()
Root Schema : Error
Type: object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)
Show Source

409 Response

Conflict
Body ()
Root Schema : Error
Type: object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)
Show Source

500 Response

Internal Server Error
Body ()
Root Schema : Error
Type: object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)
Show Source
Back to Top

Examples

The following example shows how to replace a feature flag by submitting a PUT request on the REST resource using cURL.

cURL Command

curl -H 'Authorization: Bearer <Token>' -X PUT https://{FABRIC_HOST}/admin/featueFlags/{flag} -H "Content-Type: application/json" -D @replace_featureflag.json| json_pp

Example of Request Body

The following shows an example of the request body in JSON format.

{
    "enabled": true
}

Example of Response Body

The following shows an example of the response body in JSON format.

{
    "enabled-features": [
        "self-registration"
    ]
}
Back to Top