Skip to main content

Bulk Update Employees

Update fields on multiple employees in a single request. Each item in the request array must include the BizzAssure internal emp_id. Only the fields provided per item will be updated.

The response contains a per-employee result so you can identify exactly which updates succeeded or failed.

Endpoint

PATCH /v1/client/employees/bulk

Request

Headers

HeaderValue
Content-Typeapplication/json
AuthorizationBearer YOUR_ACCESS_TOKEN

Body

{
"employees": [
{
"emp_id": "ba_emp_01jwz3k...",
"last_active_date": "2025-12-31"
},
{
"emp_id": "ba_emp_02abc...",
"last_active_date": "2025-11-30"
}
]
}

Fields

Top-level

FieldTypeRequiredDescription
employeesarrayYesArray of employee update objects (max 100 per request)

Per-employee object

FieldTypeRequiredDescription
emp_idstringYesBizzAssure internal employee ID returned when the employee was created
last_active_datestringNoLast date the employee was active, in YYYY-MM-DD format

Response

Success (200 OK)

The overall success field is true as long as the request itself was valid, even if some individual employees failed (e.g. not found). Check each entry in results to determine per-employee outcome.

{
"payload": {
"success": true,
"results": [
{
"emp_id": "ba_emp_01jwz3k...",
"success": true
},
{
"emp_id": "ba_emp_02abc...",
"success": false,
"error": "Employee with the given ID does not exist"
}
]
}
}

Response Fields

Top-level

FieldTypeDescription
successbooleantrue if the bulk request was processed (regardless of per-item failures)
resultsarrayOne result entry per employee in the request, in the same order

Per-employee result object

FieldTypeDescription
emp_idstringBizzAssure internal employee ID from the request
successbooleantrue if this employee was updated successfully
errorstringHuman-readable error reason, present only when success is false

Error Responses

Validation Error (400 Bad Request)

Returned when the top-level request body is invalid (e.g. employees is missing or empty).

{
"type": "VALIDATION_ERROR",
"title": "Validation Failed",
"detail": "employees: must not be empty",
"instance": "/v1/client/employees/bulk"
}

Payload Too Large (413)

{
"type": "PAYLOAD_TOO_LARGE",
"title": "Too Many Employees",
"detail": "A maximum of 100 employees can be updated in a single request",
"instance": "/v1/client/employees/bulk"
}

Unauthorized (401 Unauthorized)

{
"type": "UNAUTHORIZED",
"title": "Unauthorized",
"detail": "Missing or invalid access token",
"instance": "/v1/client/employees/bulk"
}