# Create a staff member

`POST /lokta-lms/api/v1/staff`

Creates a staff member.

Mandatory fields:

- officeId
- firstname
- lastname

Optional fields:

- isLoanOfficer
- isActive

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

## Responses
- `default`: default response

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

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

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

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