# Create a ruleset **POST /deployments/traffic-filter/rulesets** Creates a ruleset that consists of a set of rules. ## Servers - https://api.elastic-cloud.com/api/v1: https://api.elastic-cloud.com/api/v1 () ## Parameters ### Body: application/json (object) The specification for traffic filter ruleset. - **name** (string) Name of the ruleset - **description** (string) Description of the ruleset - **type** (string) Type of the ruleset - **include_by_default** (boolean) Should the ruleset be automatically included in the new deployments - **region** (string) The ruleset can be attached only to deployments in the specific region - **rules** (array[object]) List of rules ## Responses ### 201 The ruleset definition is valid and the creation has started. #### Body: application/json (object) - **id** (string) The new ruleset ID ### 500 Error creating the traffic filter ruleset. (code: `traffic_filter.request_execution_failed`) #### Headers - **x-cloud-error-codes** (string) The error codes associated with the response #### Body: application/json (object) - **errors** (array[object]) A list of errors that occurred in the failing request [Powered by Bump.sh](https://bump.sh)