Submit census sync
employers.submit_census_sync(employer_id, **kwargs) -> EmployerSubmitCensusSyncResponse { data }
POST/v1/employers/{employer_id}/census-sync
Submits a census sync payload for the specified employer. The employees in the payload will be queued for processing. Returns an accepted response with the timestamp of acceptance.
Submit census sync
require "vitable_connect"
vitable_connect = VitableConnect::Client.new(
api_key: "My API Key",
environment: "environment_1" # defaults to "production"
)
response = vitable_connect.employers.submit_census_sync(
"empr_abc123def456",
employees: [
{date_of_birth: "1990-05-15", email: "jane.doe@acme.com", first_name: "Jane", last_name: "Doe", phone: "4155550100"},
{
date_of_birth: "1985-11-20",
email: "john.smith@acme.com",
first_name: "John",
last_name: "Smith",
phone: "4155550101"
}
]
)
puts(response){
"data": {
"accepted_at": "2019-12-27T18:11:19.117Z",
"employer_id": "employer_id"
}
}Returns Examples
{
"data": {
"accepted_at": "2019-12-27T18:11:19.117Z",
"employer_id": "employer_id"
}
}