# Save TaxRule **PUT /V1/taxRules** Save TaxRule ## Servers - https://magento2.winkelstraat.mac/rest/all: https://magento2.winkelstraat.mac/rest/all () ## Parameters ### Body: (object) - **rule** (object) Tax rule interface. ## Responses ### 200 200 Success. #### Body: (object) - **id** (integer) Id - **code** (string) Tax rule code - **priority** (integer) Priority - **position** (integer) Sort order. - **customer_tax_class_ids** (array[integer]) Customer tax class id - **product_tax_class_ids** (array[integer]) Product tax class id - **tax_rate_ids** (array[integer]) Tax rate ids - **calculate_subtotal** (boolean) Calculate subtotal. - **extension_attributes** (object) ExtensionInterface class for @see \Magento\Tax\Api\Data\TaxRuleInterface ### 401 401 Unauthorized #### Body: (object) - **message** (string) Error message - **errors** (array[object]) Error details - **code** (integer) Error code - **parameters** (array[object]) Error parameters item - **trace** (string) Stack trace ### 400 400 Bad Request #### Body: (object) - **message** (string) Error message - **errors** (array[object]) Error details - **code** (integer) Error code - **parameters** (array[object]) Error parameters item - **trace** (string) Stack trace ### 500 Internal Server error #### Body: (object) - **message** (string) Error message - **errors** (array[object]) Error details - **code** (integer) Error code - **parameters** (array[object]) Error parameters item - **trace** (string) Stack trace ### default Unexpected error #### Body: (object) - **message** (string) Error message - **errors** (array[object]) Error details - **code** (integer) Error code - **parameters** (array[object]) Error parameters item - **trace** (string) Stack trace [Powered by Bump.sh](https://bump.sh)