Create or Update Feature Flag: /flag/ (PUT)
Purpose:
Create or update a feature flag. The current purpose is to enable or disable the S3 feature.
Input:
- Headers:
- Content-Type: application/json
- Client-Secret: A header to authenticate the request.
- Authorization: The JWT token of the user.
- JSON Body:
- name: (String) The name of the feature flag (Use "s3" to enable/disable S3).
- enabled: (Boolean) Whether or not the feature flag should be enabled.
Output (200):
{
"name": "s3",
"enabled": false
}