Skip to content
Get started

Update employer

employers.update(employer_id, **kwargs) -> Employer { id, active, created_at, 7 more }
put/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.

ParametersExpand Collapse
employer_id: String
active: bool

Whether the employer is active

address: { city, state, street_1, 3 more}

Employer address

city: String

City name

state: String

Two-letter state code

maxLength2
minLength2
street_1: String

Primary street address

zip_code: String

ZIP code

country: String

Country code

street_2: String

Secondary street address

name: String

Employer display name

maxLength255
minLength1
ReturnsExpand Collapse
class Employer { id, active, created_at, 7 more }

Serializer for Employer entity in public API responses.

Matches EmployerEntity from company module domain.

id: String

Unique employer identifier with 'empr_' prefix

active: bool

Whether the employer is currently active in the system

created_at: Time

Timestamp when the employer was created

formatdate-time
name: String

Display name of the employer

organization_id: String

ID of the parent organization (org_*)

updated_at: Time

Timestamp when the employer was last updated

formatdate-time
address: { city, state, street_1, 3 more}

Nested address within EmployerSerializer.

city: String

City name

state: String

Two-letter state code (e.g., CA, NY)

street_1: String

Primary street address

zip_code: String

ZIP code (5 or 9 digit)

country: String

Country code (default: US)

street_2: String

Secondary street address (apt, suite, etc.)

ein: String

Employer Identification Number (masked in responses)

eligibility_policy_id: String

ID of the benefit eligibility policy (epol_*), if assigned

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"
}