# Update a Staff Member

`PUT /lokta-lms/api/v1/staff/{staffId}`

Updates the details of a staff member.

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

## Request body (application/json)
- `emailAddress` (string)
- `externalId` (string)
- `firstname` (string)
- `forceStatus` (boolean)
- `isActive` (boolean)
- `isLoanOfficer` (boolean)
- `joiningDate` (string)
- `lastname` (string)
- `mobileNo` (string)
- `officeId` (integer)

## Responses
- `default`: default response

## Response fields
- `changes` (object)
- `officeId` (integer)
- `resourceId` (integer)

## Example request (cURL)
```bash
curl -X PUT \
  'http://localhost:8080/lokta-lms/api/v1/staff/{staffId}' \
  -u '{username}:{password}' \
  -H 'Tenant-Identifier: default' \
  -H 'Content-Type: application/json' \
  -d '{
  "emailAddress": "string",
  "externalId": "string",
  "firstname": "string",
  "forceStatus": true,
  "isActive": true,
  "isLoanOfficer": true,
  "joiningDate": "19 August 2026",
  "lastname": "string",
  "mobileNo": "string",
  "officeId": 1
}'
```

## Example response
```json
{
  "changes": {},
  "officeId": 1,
  "resourceId": 1
}
```

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