Attach a feature to a product 

Creates a product_feature, which represents a feature attachment to a product

Parameters

  • entitlement_featurestringRequired

    The ID of the Feature object attached to this product.

Returns

Returns a product_feature

POST /v1/products/:id/features
curl https://api.stripe.com/v1/products/prod_NWjs8kKbJWmuuc/features \
-u "sk_test_BQokikJ...2HlWgH4olfQ2sk_test_BQokikJOvBiI2HlWgH4olfQ2:" \
-d entitlement_feature=feat_test_61QGU1MWyFMSP9YBZ41ClCIKljWvsTgu
Response
{
"id": "prodft_BcMBZUWCIOEgEc",
"object": "product_feature",
"livemode": false,
"entitlement_feature": {
"id": "feat_test_61QGU1MWyFMSP9YBZ41ClCIKljWvsTgu",
"object": "entitlements.feature",
"livemode": false,
"name": "My super awesome feature",
"lookup_key": "my-super-awesome-feature",
"metadata": {}
}
}

Remove a feature from a product 

Deletes the feature attachment to a product

Parameters

No parameters.

Returns

Returns an object with a deleted parameter on success. If the product feature ID does not exist, this call raises an error.

DELETE /v1/products/:id/features/:id
curl -X DELETE https://api.stripe.com/v1/products/prod_NWjs8kKbJWmuuc/features/prodft_BcMBZUWCIOEgEc \
-u "sk_test_BQokikJ...2HlWgH4olfQ2sk_test_BQokikJOvBiI2HlWgH4olfQ2:"
Response
{
"id": "prodft_BcMBZUWCIOEgEc",
"object": "product_feature",
"deleted": true
}

Active Entitlement 

An active entitlement describes access to a feature for a customer.

Scheduled Queries 

If you have scheduled a Sigma query, you’ll receive a sigma.scheduled_query_run.created webhook each time the query runs. The webhook contains a ScheduledQueryRun object, which you can use to retrieve the query results.

Query Run 

Represents an ad-hoc execution of a Sigma query via the API