Update dependent information
client.dependents.update(stringdependentID, DependentUpdateParams { active, gender, relationship } body?, RequestOptionsoptions?): Dependent { id, active, created_at, 10 more }
/v1/dependents/{dependent_id}
Updates an existing dependent's mutable information. Allows modification of relationship type and active status. Name, DOB, and sex cannot be modified after creation.
Parameters
dependentID: string
Returns
Update dependent information
import VitableConnectAPI from 'vitable-connect-api';
const client = new VitableConnectAPI({
apiKey: 'My API Key',
});
const dependent = await client.dependents.update('dpnd_abc123def456');
console.log(dependent.id);
{
"id": "id",
"active": true,
"created_at": "2019-12-27T18:11:19.117Z",
"date_of_birth": "2019-12-27",
"first_name": "first_name",
"last_name": "last_name",
"member_id": "member_id",
"relationship": "Spouse",
"sex": "Male",
"updated_at": "2019-12-27T18:11:19.117Z",
"gender": "gender",
"ssn_last_four": "ssn_last_four",
"suffix": "suffix"
}
Returns Examples
{
"id": "id",
"active": true,
"created_at": "2019-12-27T18:11:19.117Z",
"date_of_birth": "2019-12-27",
"first_name": "first_name",
"last_name": "last_name",
"member_id": "member_id",
"relationship": "Spouse",
"sex": "Male",
"updated_at": "2019-12-27T18:11:19.117Z",
"gender": "gender",
"ssn_last_four": "ssn_last_four",
"suffix": "suffix"
}