# Update Tax Group

`PUT /lokta-lms/api/v1/taxes/group/{taxGroupId}`

Updates Tax Group. Only end date can be up-datable and can insert new tax components.

## Parameters
- `taxGroupId` (path, integer, required): taxGroupId

## Request body (application/json)
- `dateFormat` (string)
- `locale` (string)
- `name` (string)
- `taxComponents` (array of PutTaxesGroupTaxComponents)

## Responses
- `200`: OK

## Response fields
- `changes` (PutTaxesGroupChanges)
- `resourceId` (integer)

## Example request (cURL)
```bash
curl -X PUT \
  'http://localhost:8080/lokta-lms/api/v1/taxes/group/{taxGroupId}' \
  -u '{username}:{password}' \
  -H 'Tenant-Identifier: default' \
  -H 'Content-Type: application/json' \
  -d '{
  "dateFormat": "dd MMMM yyyy",
  "locale": "en",
  "name": "tax group 2",
  "taxComponents": [
    {
      "endDate": "22 April 2016",
      "id": 7,
      "taxComponentId": 7
    }
  ]
}'
```

## Example response
```json
{
  "changes": {
    "addComponents": [
      6
    ],
    "modifiedComponents": [],
    "name": "tax group 2"
  },
  "resourceId": 7
}
```

Interactive: https://developer.lokta.ai/reference.html#operation/updateTaxGroup
