## Update employer `client.employers.update(stringemployerID, EmployerUpdateParamsbody?, RequestOptionsoptions?): EmployerResponse` **put** `/v1/employers/{employer_id}` Updates an existing employer. All fields are optional — only provided fields are updated. PO Box addresses are rejected. ### Parameters - `employerID: string` Unique employer identifier (empr_*) - `body: EmployerUpdateParams` - `active?: boolean | null` Whether the employer is active - `address?: Address | null` Employer address - `address_line_1: string` Primary street address - `city: string` City name - `state: string` Two-letter state code - `zipcode: string` ZIP code - `address_line_2?: string | null` Secondary street address - `legal_name?: string | null` Legal business name - `name?: string | null` Employer display name ### Returns - `EmployerResponse` Response containing a single employer resource. - `data: Employer` Serializer for Employer entity in public API responses. - `id: string` Unique employer identifier with 'empr_' prefix - `active: boolean` Whether the employer is currently active in the system - `address: Address` Nested address within EmployerSerializer. - `address_line_1: string` Primary street address - `city: string` City name - `state: string` Two-letter state code (e.g., CA, NY) - `zipcode: string` ZIP code (5 or 9 digit) - `address_line_2?: string | null` Secondary street address (apt, suite, etc.) - `contact: Contact | null` Primary company-admin contact (email + phone; company admins have no person name). - `email: string | null` Primary contact email - `phone: string | null` Primary contact phone, or null - `created_at: string` Timestamp when the employer was created - `ein: string | null` Employer Identification Number (format: XX-XXXXXXX) - `legal_name: string` Legal business name for compliance and tax purposes - `name: string` Display name of the employer - `organization_id: string | null` ID of the parent organization (org_*) - `updated_at: string` Timestamp when the employer was last updated - `email?: string | null` Email address for billing and communications - `phone_number?: string | null` Employer phone number (E.164 format recommended) - `reference_id?: string | null` Partner-assigned reference ID for the employer ### Example ```typescript 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 employerResponse = await client.employers.update('empr_abc123def456'); console.log(employerResponse.data); ``` #### Response ```json { "data": { "id": "id", "active": true, "address": { "address_line_1": "address_line_1", "city": "city", "state": "state", "zipcode": "zipcode", "address_line_2": "address_line_2" }, "contact": { "email": "dev@stainless.com", "phone": "phone" }, "created_at": "2019-12-27T18:11:19.117Z", "ein": "ein", "legal_name": "legal_name", "name": "name", "organization_id": "organization_id", "updated_at": "2019-12-27T18:11:19.117Z", "email": "dev@stainless.com", "phone_number": "phone_number", "reference_id": "reference_id" } } ```