Skip to main content

Update Employee

Update the details of an existing employee. All fields are optional — only fields provided in the request body will be updated.

Endorsements on certain field changes

Changing name, date_of_birth, or gender on an active employee will automatically create a Modification endorsement on all their active policies. Setting date_of_leaving creates a Deletion endorsement. Use effective_date to control the endorsement date (defaults to today).

Endpoint

PUT /v1/client/employees/{employee_id}

Path Parameters

ParameterDescription
employee_idBizzAssure internal employee ID (returned from Create Employee)

Request

Headers

HeaderValue
Content-Typeapplication/json
AuthorizationBearer YOUR_ACCESS_TOKEN

Body

Send only the fields you want to change. Omitted fields remain unchanged.

{
"name": "Ravi K. Kumar",
"designation": "Senior Software Engineer",
"department": "Platform Engineering",
"status": "EMPLOYEE_STATUS_ACTIVE",
"effective_date": "2024-06-01"
}

Fields

FieldTypeDescription
namestringFull name (triggers Modification endorsement on active policies)
emailstringOfficial email address (must be a valid email)
phone_numberstringOfficial phone number
date_of_birthstringDate of birth in YYYY-MM-DD format (triggers Modification endorsement)
genderstringGENDER_MALE, GENDER_FEMALE, or GENDER_OTHER (triggers Modification endorsement)
designationstringJob title / designation
departmentstringDepartment
date_of_joiningstringDate of joining in YYYY-MM-DD format
date_of_leavingstringDate of leaving in YYYY-MM-DD format — marks the employee as inactive and triggers Deletion endorsement
addressstringResidential address
personal_emailstringPersonal email address
personal_phone_numberstringPersonal phone number
statusstringEMPLOYEE_STATUS_ACTIVE, EMPLOYEE_STATUS_INACTIVE, or EMPLOYEE_STATUS_INACTIVE_ONGOING_CLAIM
effective_datestringYYYY-MM-DD date to use for any auto-generated endorsements. Defaults to today if omitted.

Response

Success (200 OK)

{
"payload": {
"employee_id": "ba_emp_01jwz3k...",
"message": "Employee updated successfully",
"success": true
}
}

Response Fields

FieldTypeDescription
employee_idstringBizzAssure internal employee ID (unchanged)
messagestringHuman-readable result message
successbooleantrue if the update was applied

Error Responses

Validation Error (400 Bad Request)

{
"type": "VALIDATION_ERROR",
"title": "Validation Failed",
"detail": "gender: must be one of GENDER_MALE, GENDER_FEMALE, GENDER_OTHER",
"instance": "/v1/client/employees/ba_emp_01jwz3k"
}

Missing Employee ID (400 Bad Request)

{
"type": "MISSING_EMPLOYEE_ID",
"title": "Employee ID is required",
"detail": "Employee ID must be provided in URL path",
"instance": "/v1/client/employees/"
}

Not Found (404)

{
"type": "NOT_FOUND",
"title": "Employee Not Found",
"detail": "No employee found with the given ID",
"instance": "/v1/client/employees/ba_emp_01jwz3k"
}