Update employer
employers.update(employer_id, **kwargs) -> Employer { id, active, created_at, 7 more }
/v1/employers/{employer_id}
Updates an existing employer's information. All fields are optional - only provided fields will be updated. Note: EIN cannot be changed after creation.
Parameters
employer_id: String
active: bool
Whether the employer is active
legal_name: String
Legal business name
maxLength255
minLength1
name: String
Employer display name
maxLength255
minLength1
Returns
Update employer
require "vitable_connect_api"
vitable_connect_api = VitableConnectAPI::Client.new(
api_key: "My API Key",
environment: "environment_1" # defaults to "production"
)
employer = vitable_connect_api.employers.update("empr_abc123def456")
puts(employer)
{
"id": "id",
"active": true,
"created_at": "2019-12-27T18:11:19.117Z",
"legal_name": "legal_name",
"name": "name",
"organization_id": "organization_id",
"updated_at": "2019-12-27T18:11:19.117Z",
"address": {
"city": "city",
"state": "state",
"street_1": "street_1",
"zip_code": "zip_code",
"country": "country",
"street_2": "street_2"
},
"ein": "ein",
"eligibility_policy_id": "eligibility_policy_id"
}
Returns Examples
{
"id": "id",
"active": true,
"created_at": "2019-12-27T18:11:19.117Z",
"legal_name": "legal_name",
"name": "name",
"organization_id": "organization_id",
"updated_at": "2019-12-27T18:11:19.117Z",
"address": {
"city": "city",
"state": "state",
"street_1": "street_1",
"zip_code": "zip_code",
"country": "country",
"street_2": "street_2"
},
"ein": "ein",
"eligibility_policy_id": "eligibility_policy_id"
}