Skip to main content
PATCH
/
v1
/
user
/
features
Enable or disable a user feature
curl --request PATCH \
  --url http://0.0.0.0:3000/v1/user/features \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "featureId": "dark_mode",
  "enabled": true
}
'
{
  "error": "unauthorized"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
featureId
string
required

Identificador da feature

enabled
boolean
required

Ativar ou desativar

Response

Feature updated