Create Employee Dependent
Changed onCreates a new dependent record for an employee. employeeId is required and must reference a valid employee. relationship must be a valid relationship type and gender must be a valid gender value. isUsCitizen and isStudent accept "yes" or "no". state accepts a state code (e.g. "UT") and country accepts an ISO 3166-1 alpha-2 country code (e.g. "US"). dateOfBirth must be in YYYY-MM-DD format. SSN and SIN are accepted as plain text and stored encrypted. Accepts both application/json and application/xml request bodies. The response format mirrors the request Content-Type (not the Accept header): JSON request bodies receive a JSON response; XML request bodies receive an XML response. A successful creation fires an internal dependent-created event that may trigger downstream benefit enrollment processing.
OAuth Scopes: employee:dependent.write, employee:dependent:ssn.write
Request
- Base URLhttps://companySubDomain.bamboohr.com
- Auth
- HTTP basic
- or OAuth 2Authorization code/authorize.phpToken URL/token.phpScopesemployee:dependent:ssn.write
- or OAuth 2Authorization code/authorize.phpToken URL/token.phpScopesemployee:dependent.write
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
The newly created dependent record. Format matches the request Content-Type (JSON or XML).
Changes
- info
the security scope
employee:dependent:ssn.writewas added to the endpoint's security schemeoauth - info
the security scope
employee:dependent.writewas removed from the endpoint's security schemeoauth
- info