Update employer settings
client.employers.updateSettings(stringemployerID, EmployerUpdateSettingsParams { pay_frequency } body, RequestOptionsoptions?): EmployerUpdateSettingsResponse { data }
PUT/v1/employers/{employer_id}/settings
Updates configuration settings for a specific employer. The employer must belong to the authenticated organization.
Update employer settings
import VitableConnect from '@vitable-inc/vitable-connect';
const client = new VitableConnect({
apiKey: process.env['VITABLE_CONNECT_API_KEY'], // This is the default and can be omitted
});
const response = await client.employers.updateSettings('empr_abc123def456', {
pay_frequency: 'bi_weekly',
});
console.log(response.data);{
"data": {
"pay_frequency": "bi_weekly"
}
}Returns Examples
{
"data": {
"pay_frequency": "bi_weekly"
}
}