Skip to main content

Create a Feature

Create a new feature.

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

Endpoint
POST /v1/features

Parameters

ParameterDescriptionTypeRequired
featureIdA string identifier for the feature. A featureId must be composed of alphanumeric chars and/or _, -, ., @, |, and :.JSON bodyyes
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

Request

curl "https://api.warrant.dev/v1/features" \
-X POST \
-H "Authorization: ApiKey YOUR_KEY" \
--data-raw \
'{
"featureId":"new-feature-2",
"name":"New Feature 2",
"description":"Grants the user access to experimental New Feature 2"
}'

Response

{
"featureId": "new-feature-2",
"name": "New Feature 2",
"description": "Grants the user access to experimental New Feature 2"
}