Skip to main content

Update a Feature

Update a feature given their featureId.

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 Update Object endpoint instead.

Endpoint
PUT /v1/features/:featureId

Parameters

ParameterDescriptionTypeRequired
featureIdThe id of the feature to update. Note that id cannot be changed.URL paramyes
nameAn optional, display-friendly name for the feature.JSON bodyno
descriptionAn optional description of the feature. A useful description might include a summary of the functionality the feature grants.JSON bodyno

Note: Optional fields that are omitted will clear existing values.

Request

curl "https://api.warrant.dev/v1/features/custom-dashboards" \
-X PUT \
-H "Authorization: ApiKey YOUR_KEY" \
--data-raw \
'{ "name": "Custom Dashboards", description: "Grants the users of a tenant the ability to create and save custom dashboards" }'

Response

{
"featureId": "custom-dashboards",
"name": "Custom Dashboards",
"description": "Grants the users of a tenant the ability to create and save custom dashboards"
}