# Update Tax Component

`PUT /lokta-lms/api/v1/taxes/component/{taxComponentId}`

Updates Tax component. Debit and credit account details cannot be modified. All the future tax components would be replaced with the new percentage.

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

## Request body (application/json)
- `dateFormat` (string)
- `locale` (string)
- `name` (string)
- `percentage` (number)
- `startDate` (string)

## Responses
- `200`: OK

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

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

## Example response
```json
{
  "changes": {
    "name": "tax component 2",
    "percentage": 15,
    "startDate": "19 August 2026"
  },
  "resourceId": 1
}
```

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