Skip to main content
PUT
/
v1
/
employees
JavaScript
import BlueHive from '@bluehive/sdk';

const client = new BlueHive({
  apiKey: 'My API Key',
});

const employee = await client.employees.update({ _id: 'x' });

console.log(employee.message);
{
  "success": true,
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

API key for accessing BlueHive API endpoints. Format: "ApiKey <your-api-key>" or "Bearer <your-api-key>"

Body

application/json
_id
string
required
Minimum length: 1
firstName
string
Required string length: 1 - 100
lastName
string
Required string length: 1 - 100
email
string<email>
Maximum length: 254
dob
string
title
string
Maximum length: 200
activeAccount
enum<string>
Available options:
Active,
Inactive
blurb
string
Maximum length: 1000
address
object
phone
object[]
Maximum length: 5
employer_id
string
departments
string[]
Maximum length: 10
extendedFields
object[]
Maximum length: 20

Response

Employee updated successfully

success
boolean
required
message
string
required
I