Remove Feature from a User
Remove a feature from a user.
caution
This endpoint has been deprecated and will be phased out at the end of 2023. Please update any existing usages of it to use the Delete Warrant endpoint instead.
Endpoint
DELETE /v1/users/:userId/features/:featureId
Parameters
Parameter | Description | Type | Required |
---|---|---|---|
userId | The userId of the user you want to remove the feature from. | URL param | yes |
featureId | The featureId of the feature you want to remove from the user. | URL param | yes |
Request
- cURL
- Go
- Java
- Node.js
- Python
- Ruby
- PHP
- CLI
curl "https://api.warrant.dev/v1/users/fs987balkshe/features/dashboard" \
-X DELETE \
-H "Authorization: ApiKey YOUR_KEY"
wookie, err := feature.RemoveFeatureFromUser("dashboard", "fs987balkshe")
try {
client.removeFeatureFromUser("dashboard", "fs987balkshe");
} catch (WarrantException e) {
// Handle error
}
// Class method
await warrantClient.Feature.removeFeatureFromUser("fs987balkshe", "dashboard");
// Instance method
const user = await warrantClient.User.get("fs987balkshe");
await user.removeFeature("dashboard");
# Class method
warrant.Feature.remove_from_user("fs987balkshe", "dashboard")
# Instance method
user = warrant.User.get("fs987balkshe")
user.remove_feature("dashboard")
# Class method
Warrant::Feature.remove_from_user("fs987balkshe", "dashboard")
# Instance method
user = Warrant::User.get("fs987balkshe")
user.remove_feature("dashboard")
Response
200 OK