# Update a Payment Type

`PUT /lokta-lms/api/v1/paymenttypes/{paymentTypeId}`

Updates a Payment Type

## Parameters
- `paymentTypeId` (path, integer, required)

## Request body (application/json)
- `isSystemDefined` (boolean, required)
- `name` (string, required)
- `codeName` (string)
- `description` (string)
- `isCashPayment` (boolean)
- `position` (integer)

## Responses
- `default`: default response

## Response fields
- `resourceId` (integer)

## Example request (cURL)
```bash
curl -X PUT \
  'http://localhost:8080/lokta-lms/api/v1/paymenttypes/{paymentTypeId}' \
  -u '{username}:{password}' \
  -H 'Tenant-Identifier: default' \
  -H 'Content-Type: application/json' \
  -d '{
  "isSystemDefined": true,
  "name": "string",
  "codeName": "string",
  "description": "string",
  "isCashPayment": true,
  "position": 1
}'
```

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

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