# Create a new Tax Group

`POST /lokta-lms/api/v1/taxes/group`

Create a new Tax Group
Mandatory Fields: name and taxComponents
Mandatory Fields in taxComponents: taxComponentId
Optional Fields in taxComponents: id, startDate and endDate

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

## Responses
- `200`: OK

## Response fields
- `resourceId` (integer)

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

## Example response
```json
{
  "resourceId": 1
}
```

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