Update employer
employers.update(stremployer_id, EmployerUpdateParams**kwargs) -> EmployerResponse
PUT/v1/employers/{employer_id}
Updates an existing employer. All fields are optional — only provided fields are updated. PO Box addresses are rejected.
Update employer
import os
from vitable_connect import VitableConnect
client = VitableConnect(
api_key=os.environ.get("VITABLE_CONNECT_API_KEY"), # This is the default and can be omitted
)
employer_response = client.employers.update(
employer_id="empr_abc123def456",
)
print(employer_response.data){
"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"
}
}Returns Examples
{
"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"
}
}