# Updates a ruleset **PUT /deployments/traffic-filter/rulesets/{ruleset_id}** Updates the ruleset with the definition. ## Servers - https://api.elastic-cloud.com/api/v1: https://api.elastic-cloud.com/api/v1 () ## Parameters ### Path parameters - **ruleset_id** (string) The mandatory ruleset ID. ### 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 ### 200 The ruleset definition was valid and the update has started. #### Body: application/json (object) - **id** (string) The new ruleset ID ### 404 The traffic filter ruleset specified by {ruleset_id} cannot be found. (code: `traffic_filter.not_found`) #### 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 ### 500 Error reading 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)