Update plan year configuration
plan_years.update(plan_year_id, **kwargs) -> PlanYear { id, benefit_product_id, contribution_classes, 9 more }
/v1/plan-years/{plan_year_id}
Updates an existing plan year's configuration. Important: Plan years can only be edited until open enrollment starts. All fields are optional. Monetary values must be in cents.
Parameters
plan_year_id: String
open_enrollment_end: Date
Open enrollment end date
formatdate
open_enrollment_start: Date
Open enrollment start date
formatdate
status: String
Plan year status
Returns
Update plan year configuration
require "vitable_connect_api"
vitable_connect_api = VitableConnectAPI::Client.new(
api_key: "My API Key",
environment: "environment_1" # defaults to "production"
)
plan_year = vitable_connect_api.plan_years.update("plyr_abc123def456")
puts(plan_year)
{
"id": "id",
"benefit_product_id": "benefit_product_id",
"contribution_classes": [
{
"id": "id",
"employee_contribution_cents": 0,
"employer_contribution_cents": 0,
"employment": "employment",
"family_status": "Unspecified"
}
],
"coverage_end": "2019-12-27",
"coverage_start": "2019-12-27",
"created_at": "2019-12-27T18:11:19.117Z",
"employer_id": "employer_id",
"open_enrollment_end_date": "2019-12-27",
"open_enrollment_start_date": "2019-12-27",
"plans": [
{
"id": "id",
"carrier_plan_id": "carrier_plan_id",
"monthly_premium_cents": 0,
"name": "name",
"deductible_cents": 0,
"out_of_pocket_max_cents": 0,
"tier": "Bronze"
}
],
"status": "draft",
"updated_at": "2019-12-27T18:11:19.117Z"
}
Returns Examples
{
"id": "id",
"benefit_product_id": "benefit_product_id",
"contribution_classes": [
{
"id": "id",
"employee_contribution_cents": 0,
"employer_contribution_cents": 0,
"employment": "employment",
"family_status": "Unspecified"
}
],
"coverage_end": "2019-12-27",
"coverage_start": "2019-12-27",
"created_at": "2019-12-27T18:11:19.117Z",
"employer_id": "employer_id",
"open_enrollment_end_date": "2019-12-27",
"open_enrollment_start_date": "2019-12-27",
"plans": [
{
"id": "id",
"carrier_plan_id": "carrier_plan_id",
"monthly_premium_cents": 0,
"name": "name",
"deductible_cents": 0,
"out_of_pocket_max_cents": 0,
"tier": "Bronze"
}
],
"status": "draft",
"updated_at": "2019-12-27T18:11:19.117Z"
}