---
updatedAt: 2026-06-01T12:44:28.000Z
agentTools:
  projectIndex: https://docs.nayya.com/llms.txt
---

# Create or Update a Benefit

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "paths": {
    "/employers/{employerId}/benefits": {
      "post": {
        "operationId": "create-or-update-benefit",
        "parameters": [
          {
            "name": "employerId",
            "required": true,
            "in": "path",
            "description": "The unique ID from Nayya or your unique ID prefixed with the `external:` indicator that represents an employer (e.g. `external:3438yht-hg8ht39-h23uh9th-uewht0o`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-API-Version",
            "in": "header",
            "required": false,
            "description": "Optional API major version. Omit this header for the same behavior as `1` (this specification).",
            "schema": {
              "type": "string",
              "default": "1"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOrUpdateChooseBenefitRequestDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BenefitResponseDto"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          },
          "422": {
            "description": "Unprocessable entity"
          },
          "429": {
            "description": "Unable to resolve employer ID after maximum retry attempts. This may be because the employer is not yet available or due to temporary system issues. Please try again."
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "summary": "Create or Update a Benefit",
        "tags": [
          "Benefits"
        ]
      }
    }
  },
  "info": {
    "title": "Benefits API",
    "description": "The Benefits API lets you read and manage employer benefits data in Nayya: benefits and their dependencies, carriers, enrollments, rule templates, and snapshots. Requests use a bearer token scoped to your partner account.",
    "version": "0.1",
    "contact": {}
  },
  "servers": [
    {
      "url": "https://integrate.nayya.com/benefits",
      "description": "Production"
    },
    {
      "url": "https://integrate.partners.nayya.com/benefits",
      "description": "Partners"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "JWT token"
      }
    },
    "schemas": {
      "NayyaRulePropertiesDto": {
        "type": "object",
        "properties": {
          "conditions": {
            "type": "object",
            "example": {
              "any": [
                {
                  "fact": "myFact",
                  "operator": "equal",
                  "value": "myValue"
                }
              ]
            },
            "description": "The conditions upon which emission of the corresponding event are predicated."
          },
          "event": {
            "type": "object",
            "example": {
              "type": "amount_per_day",
              "params": {
                "amount": 30,
                "displayValue": "$30 per day"
              }
            },
            "description": "The event emitted when predicate conditions are satisfied."
          }
        },
        "required": [
          "conditions",
          "event"
        ]
      },
      "FeatureItemResponseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "8c798fb8-b55d-475b-a4db-91786c0d58c7",
            "description": "Nayya's ID of the feature item"
          },
          "name": {
            "type": "string",
            "example": "copay",
            "description": "Nayya's name of the feature item",
            "nullable": true
          },
          "tierId": {
            "type": "string",
            "nullable": true,
            "example": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
            "description": "Nayya's internal unique ID used to identify a tier"
          },
          "externalTierId": {
            "type": "string",
            "nullable": true,
            "example": "tier123",
            "description": "Your internal unique ID used to identify a tier"
          },
          "ruleset": {
            "description": "A materialized rule belonging to the corresponding Feature",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NayyaRulePropertiesDto"
            }
          },
          "createdAt": {
            "format": "date-time",
            "type": "string",
            "example": "2024-11-22T20:03:04.395Z",
            "description": "When the feature item was created"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string",
            "example": "2024-12-22T20:03:04.395Z",
            "description": "When the feature item was last updated"
          }
        },
        "required": [
          "id",
          "createdAt",
          "updatedAt"
        ]
      },
      "FeatureResponseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
            "description": "Nayya's ID of the feature"
          },
          "displayName": {
            "type": "string",
            "example": "Office Visit",
            "description": "Name of the feature that will be visible to employees"
          },
          "createdAt": {
            "format": "date-time",
            "type": "string",
            "example": "2024-11-22T20:03:04.395Z",
            "description": "When the feature was created"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string",
            "example": "2024-12-22T20:03:04.395Z",
            "description": "When the feature was last updated"
          },
          "type": {
            "type": "string",
            "enum": [
              "office_visit",
              "specialist_visit",
              "inpatient",
              "outpatient",
              "diagnostic",
              "dental",
              "imaging",
              "emergency_care",
              "urgent_care",
              "telemedicine",
              "behavioral_health",
              "class_1_rx",
              "class_2_rx",
              "class_3_rx",
              "class_4_rx",
              "class_5_rx",
              "preventative_care",
              "basic_care",
              "major_care",
              "orthodontics",
              "child_orthodontics",
              "adult_orthodontics",
              "confinement",
              "portability",
              "short_term_disability",
              "long_term_disability",
              "heart_attack",
              "heart_condition",
              "cancer_major",
              "cancer_minor",
              "hospital_admission",
              "basic_life",
              "whole_life",
              "term_life",
              "universal_life",
              "employer_contribution",
              "frame_allowance",
              "annual_eye_exam",
              "employer_match",
              "therapies",
              "accidental_death_and_dismemberment",
              "adoption",
              "health_care_proxy",
              "traffic_matters",
              "debt_collection",
              "rollover",
              "maternity_coverage",
              "ambulance",
              "materials",
              "renal_failure",
              "organ_failure",
              "stroke",
              "health_screening",
              "mental_health_facility",
              "substance_abuse_facility",
              "nursing_facility",
              "air_ambulance",
              "catastrophic_loss",
              "common_carrier",
              "disaster",
              "concussion",
              "dental_treatment",
              "eye_surgery",
              "icu_admission",
              "icu_confinement",
              "physical_therapy",
              "prescribed_appliance",
              "prescribed_prosthetic",
              "rehabilitation_confinement",
              "single_vision_lenses",
              "bifocal_lenses",
              "trifocal_lenses",
              "polycarbonate_lenses",
              "progressive_lenses",
              "contact_lenses",
              "laser_vision_correction",
              "contact_lens_fitting",
              "additional_glasses",
              "guaranteed_issue",
              "spouse_guaranteed_issue",
              "spouse_term_life",
              "child_term_life",
              "critical_illness"
            ],
            "example": "office_visit",
            "description": "Type of Feature present under a Benefit"
          },
          "featureItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FeatureItemResponseDto"
            }
          }
        },
        "required": [
          "id",
          "displayName",
          "createdAt",
          "updatedAt",
          "type",
          "featureItems"
        ]
      },
      "TierResponseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "d9428888-122b-11e1-b85c-61cd3cbb3210",
            "description": "Nayya's ID of the tier"
          },
          "externalId": {
            "type": "string",
            "example": "tier456",
            "description": "Your internal unique ID used to identify a tier"
          },
          "networkId": {
            "type": "string",
            "nullable": true,
            "example": "network123",
            "description": "Ribbon Network ID associated with the Benefit Tier"
          },
          "displayName": {
            "type": "string",
            "example": "In Network",
            "description": "Name of the tier that will be visible to employees"
          },
          "type": {
            "type": "string",
            "enum": [
              "in_network",
              "out_of_network",
              "specialty"
            ],
            "example": "in_network",
            "description": "Type of Tier or network grouping present under a Benefit"
          },
          "createdAt": {
            "format": "date-time",
            "type": "string",
            "example": "2024-11-22T20:03:04.395Z",
            "description": "when the tier was created"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string",
            "example": "2024-12-22T20:03:04.395Z",
            "description": "when the tier was last updated"
          }
        },
        "required": [
          "id",
          "externalId",
          "displayName",
          "type",
          "createdAt",
          "updatedAt"
        ]
      },
      "ThresholdItemResponseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
            "description": "Nayya's ID of the threshold item"
          },
          "tierId": {
            "type": "string",
            "nullable": true,
            "example": "8c798fb8-b55d-475b-a4db-91786c0d58c7",
            "description": "Nayya's internal unique ID used to identify a tier"
          },
          "externalTierId": {
            "type": "string",
            "nullable": true,
            "example": "tier456",
            "description": "Your internal unique ID used to identify a tier"
          },
          "ruleset": {
            "description": "Utilize a rule template with appropriate inputs",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NayyaRulePropertiesDto"
            }
          },
          "createdAt": {
            "format": "date-time",
            "type": "string",
            "example": "2024-11-22T20:03:04.395Z",
            "description": "When the threshold item was created"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string",
            "example": "2024-12-22T20:03:04.395Z",
            "description": "When the threshold item was last updated"
          }
        },
        "required": [
          "id",
          "createdAt",
          "updatedAt"
        ]
      },
      "ThresholdResponseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
            "description": "Nayya's ID of the threshold"
          },
          "displayName": {
            "type": "string",
            "example": "Individual Deductible",
            "description": "Name of the threshold that will be visible to employees"
          },
          "type": {
            "type": "string",
            "enum": [
              "deductible",
              "out_of_pocket_max",
              "embedded_deductible",
              "family_deductible",
              "family_out_of_pocket_max",
              "weekly_benefit_max",
              "monthly_benefit_max",
              "annual_benefit_max",
              "benefit_max",
              "contribution_max",
              "family_contribution_max",
              "child_lifetime_orthodontia_max",
              "adult_lifetime_orthodontia_max"
            ],
            "example": "deductible",
            "description": "Type of Threshold or financial boundary present under a Benefit"
          },
          "createdAt": {
            "format": "date-time",
            "type": "string",
            "example": "2024-11-22T20:03:04.395Z",
            "description": "when the threshold was created"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string",
            "example": "2024-12-22T20:03:04.395Z",
            "description": "When the threshold was last updated"
          },
          "thresholdItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ThresholdItemResponseDto"
            }
          }
        },
        "required": [
          "id",
          "displayName",
          "type",
          "createdAt",
          "updatedAt",
          "thresholdItems"
        ]
      },
      "BenefitDependencyResponseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "4e8392d4-f6b3-4cc0-9b77-b702f8115807",
            "description": "Nayya's ID of the benefit dependency"
          },
          "type": {
            "type": "string",
            "enum": [
              "must_enroll_in",
              "must_enroll_in_one_of",
              "must_not_enroll_in",
              "must_not_enroll_in_one_of"
            ],
            "example": "must_enroll_in",
            "description": "Defines if enrollment is required or prohibited for the designated benefit based on the enrollment of another benefit"
          },
          "dependentBenefits": {
            "example": [
              "6937yht-zr5ht39-n83uh5th-arwmte1",
              "fs32231-zr5htDSA-n83uh5th-arwmte1"
            ],
            "description": "Comma-separated list of benefit ids affected by the dependency rule",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "dependentBenefitsExternal": {
            "example": [
              "6937yht-zr5ht39-n83uh5th-arwmte1",
              "fs32231-zr5htDSA-n83uh5th-arwmte1"
            ],
            "description": "Comma-separated list of external benefit ids affected by the dependency rule",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "createdAt": {
            "format": "date-time",
            "type": "string",
            "example": "2024-11-22T20:03:04.395Z",
            "description": "when the feature item was created"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string",
            "example": "2024-12-22T20:03:04.395Z",
            "description": "when the feature item was last updated"
          }
        },
        "required": [
          "id",
          "type",
          "createdAt",
          "updatedAt"
        ]
      },
      "BenefitResponseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
            "description": "Nayya's ID of the benefit"
          },
          "employerId": {
            "type": "string",
            "example": "38a52be4-9352-453e-af97-5c3b448652b0",
            "description": "Nayya's ID of the employer"
          },
          "externalId": {
            "type": "string",
            "nullable": true,
            "example": "6937yht-zr5ht39-n83uh5th-arwmte1",
            "description": "Your internal unique ID used to identify a benefit"
          },
          "externalCarrierName": {
            "type": "string",
            "nullable": true,
            "example": "Carrier 123",
            "description": "Name of the carrier for this benefit"
          },
          "carrierId": {
            "type": "string",
            "example": "6592a62b-297b-459b-954b-7e4941095149",
            "description": "Unique identifier for the carrier for this benefit"
          },
          "type": {
            "type": "string",
            "example": "medical",
            "description": "Type of benefit",
            "enum": [
              "medical",
              "dental",
              "vision",
              "short_term_disability",
              "long_term_disability",
              "accident",
              "hospital_indemnity",
              "critical_illness",
              "term_life",
              "whole_life",
              "universal_life",
              "basic_life",
              "pet_insurance",
              "pet_wellness",
              "accidental_death_and_dismemberment",
              "cancer",
              "identity_theft",
              "legal",
              "401k",
              "403b",
              "457b",
              "HSA",
              "HRA",
              "FSA_medical",
              "limited_purpose_fsa",
              "dependent_care_fsa",
              "gap_insurance",
              "mental_health",
              "financial_wellness",
              "long_term_care",
              "telemedicine",
              "maternity",
              "diabetes",
              "chronic_joint_pain",
              "student_loan",
              "wellness"
            ]
          },
          "displayName": {
            "type": "string",
            "example": "Medical 1M Gold",
            "description": "Name of the benefit that will be visible to employees"
          },
          "description": {
            "type": "string",
            "nullable": true,
            "example": "This benefit is a medical plan",
            "description": "Description of the benefit"
          },
          "activeAt": {
            "format": "date-time",
            "type": "string",
            "example": "2020-01-01",
            "description": "The start date for when the plan is effective in the format: YYYY-MM-DD"
          },
          "inactiveAt": {
            "format": "date-time",
            "type": "string",
            "nullable": true,
            "example": "2020-12-31",
            "description": "The end date for when the plan is no longer effective in the format: YYYY-MM-DD. This field does not need to be provided if a plan is anticipated to roll over from year to year"
          },
          "detailsUrl": {
            "type": "string",
            "nullable": true,
            "example": "https://example.com",
            "description": "URL to a benefit overview where an employee can see coverage details"
          },
          "code": {
            "type": "string",
            "nullable": true,
            "example": "MEDICAL_GOLD_2024",
            "description": "Internal code used to identify this benefit"
          },
          "createdAt": {
            "format": "date-time",
            "type": "string",
            "example": "2024-11-22T20:03:04.395Z",
            "description": "When the benefit was created"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string",
            "example": "2024-12-22T20:03:04.395Z",
            "description": "When the benefit was last updated"
          },
          "features": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FeatureResponseDto"
            }
          },
          "tiers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TierResponseDto"
            }
          },
          "thresholds": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ThresholdResponseDto"
            }
          },
          "benefitDependencies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BenefitDependencyResponseDto"
            }
          }
        },
        "required": [
          "id",
          "employerId",
          "externalId",
          "carrierId",
          "type",
          "displayName",
          "activeAt",
          "createdAt",
          "updatedAt"
        ]
      },
      "InputValuesItem": {
        "type": "object",
        "properties": {}
      },
      "CreateRuleFromTemplateDTO": {
        "type": "object",
        "properties": {
          "templateName": {
            "type": "string",
            "nullable": true,
            "example": "amount_per_day",
            "description": "Name of the rule template to be used"
          },
          "inputValues": {
            "description": "Input values for rule template where values can be strings or numbers. An optional conditions key can be used to specify fact names and values that correspond to the input value. Note: Payloads generated via the API documentation will output integers in Key/Value pairs as strings",
            "example": [
              {
                "amount": 40,
                "conditions": [
                  {
                    "name": "familyRole",
                    "value": "employee"
                  }
                ],
                "displayValue": "Up to $40.00 (employee)"
              }
            ],
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InputValuesItem"
            }
          },
          "eventType": {
            "type": "string",
            "nullable": true,
            "example": "financial_impact",
            "description": "Event type for the rule template.",
            "enum": [
              "rate_package_eligibility",
              "coverage_eligibility",
              "enrollment_eligibility",
              "financial_impact"
            ]
          }
        }
      },
      "CreateEntityRuleRequestDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true,
            "example": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
            "description": "Nayya's internal ID for this FeatureItem/ThresholdItem. This field can be provided to update an existing FeatureItem or ThresholdItem by its internal ID."
          },
          "externalTierId": {
            "type": "string",
            "nullable": true,
            "example": "tier456",
            "description": "Your internal unique ID used to identify a Tier."
          },
          "ruleDefinitions": {
            "description": "Rule template inputs.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreateRuleFromTemplateDTO"
            }
          }
        }
      },
      "CreateFeatureRequestDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true,
            "example": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
            "description": "Nayya's internal ID for this Feature. This field can be provided to update an existing Feature by its internal ID."
          },
          "displayName": {
            "type": "string",
            "example": "Office Visit",
            "description": "Name of the feature that will be visible to employees"
          },
          "type": {
            "type": "string",
            "enum": [
              "office_visit",
              "specialist_visit",
              "inpatient",
              "outpatient",
              "diagnostic",
              "dental",
              "imaging",
              "emergency_care",
              "urgent_care",
              "telemedicine",
              "behavioral_health",
              "class_1_rx",
              "class_2_rx",
              "class_3_rx",
              "class_4_rx",
              "class_5_rx",
              "preventative_care",
              "basic_care",
              "major_care",
              "orthodontics",
              "child_orthodontics",
              "adult_orthodontics",
              "confinement",
              "portability",
              "short_term_disability",
              "long_term_disability",
              "heart_attack",
              "heart_condition",
              "cancer_major",
              "cancer_minor",
              "hospital_admission",
              "basic_life",
              "whole_life",
              "term_life",
              "universal_life",
              "employer_contribution",
              "frame_allowance",
              "annual_eye_exam",
              "employer_match",
              "therapies",
              "accidental_death_and_dismemberment",
              "adoption",
              "health_care_proxy",
              "traffic_matters",
              "debt_collection",
              "rollover",
              "maternity_coverage",
              "ambulance",
              "materials",
              "renal_failure",
              "organ_failure",
              "stroke",
              "health_screening",
              "mental_health_facility",
              "substance_abuse_facility",
              "nursing_facility",
              "air_ambulance",
              "catastrophic_loss",
              "common_carrier",
              "disaster",
              "concussion",
              "dental_treatment",
              "eye_surgery",
              "icu_admission",
              "icu_confinement",
              "physical_therapy",
              "prescribed_appliance",
              "prescribed_prosthetic",
              "rehabilitation_confinement",
              "single_vision_lenses",
              "bifocal_lenses",
              "trifocal_lenses",
              "polycarbonate_lenses",
              "progressive_lenses",
              "contact_lenses",
              "laser_vision_correction",
              "contact_lens_fitting",
              "additional_glasses",
              "guaranteed_issue",
              "spouse_guaranteed_issue",
              "spouse_term_life",
              "child_term_life",
              "critical_illness"
            ],
            "example": "office_visit",
            "description": "Type of Feature present under a Benefit"
          },
          "externalFeatureId": {
            "type": "string",
            "nullable": true,
            "example": "feature123",
            "description": "Your unique internal ID used to identify this Feature. This field can be provided to update an existing Feature using your internal ID."
          },
          "featureItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreateEntityRuleRequestDto"
            }
          }
        },
        "required": [
          "displayName",
          "featureItems"
        ]
      },
      "CreateTierRequestDto": {
        "type": "object",
        "properties": {
          "externalId": {
            "type": "string",
            "example": "tier456",
            "description": "Your internal unique ID used to identify a tier"
          },
          "networkId": {
            "type": "string",
            "nullable": true,
            "example": "network123",
            "description": "Ribbon Network ID associated with the Benefit Tier"
          },
          "displayName": {
            "type": "string",
            "example": "In Network",
            "description": "Name of the tier that will be visible to employees"
          },
          "type": {
            "type": "string",
            "enum": [
              "in_network",
              "out_of_network",
              "specialty"
            ],
            "example": "in_network",
            "description": "Type of Tier or network grouping present under a Benefit"
          }
        },
        "required": [
          "externalId",
          "displayName",
          "type"
        ]
      },
      "CreateThresholdRequestDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true,
            "example": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
            "description": "Nayya's internal ID for this Threshold. This field can be provided to update an existing Threshold by its internal ID."
          },
          "displayName": {
            "type": "string",
            "example": "Individual Deductible",
            "description": "Name of the threshold that will be visible to employees"
          },
          "type": {
            "type": "string",
            "enum": [
              "deductible",
              "out_of_pocket_max",
              "embedded_deductible",
              "family_deductible",
              "family_out_of_pocket_max",
              "weekly_benefit_max",
              "monthly_benefit_max",
              "annual_benefit_max",
              "benefit_max",
              "contribution_max",
              "family_contribution_max",
              "child_lifetime_orthodontia_max",
              "adult_lifetime_orthodontia_max"
            ],
            "example": "deductible",
            "description": "Type of Threshold or financial boundary present under a Benefit"
          },
          "thresholdItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreateEntityRuleRequestDto"
            }
          }
        },
        "required": [
          "displayName",
          "thresholdItems"
        ]
      },
      "CreateOrUpdateChooseBenefitRequestDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true,
            "example": "123e4567-e89b-12d3-a456-426614174000",
            "description": "Unique ID from Nayya used to identify a benefit"
          },
          "externalId": {
            "type": "string",
            "nullable": true,
            "example": "6937yht-zr5ht39-n83uh5th-arwmte1",
            "description": "Your internal unique ID used to identify a benefit"
          },
          "carrierId": {
            "type": "string",
            "example": "6592a62b-297b-459b-954b-7e4941095149",
            "description": "Unique identifier for the carrier for this benefit"
          },
          "externalCarrierName": {
            "type": "string",
            "nullable": true,
            "example": "Carrier 123",
            "description": "Name of the carrier for this benefit"
          },
          "description": {
            "type": "string",
            "nullable": true,
            "example": "This benefit is a medical plan",
            "description": "Description of the benefit"
          },
          "type": {
            "type": "string",
            "enum": [
              "medical",
              "dental",
              "vision",
              "short_term_disability",
              "long_term_disability",
              "accident",
              "hospital_indemnity",
              "critical_illness",
              "term_life",
              "whole_life",
              "universal_life",
              "basic_life",
              "pet_insurance",
              "pet_wellness",
              "accidental_death_and_dismemberment",
              "cancer",
              "identity_theft",
              "legal",
              "401k",
              "403b",
              "457b",
              "HSA",
              "HRA",
              "FSA_medical",
              "limited_purpose_fsa",
              "dependent_care_fsa",
              "gap_insurance",
              "mental_health",
              "financial_wellness",
              "long_term_care",
              "telemedicine",
              "maternity",
              "diabetes",
              "chronic_joint_pain",
              "student_loan",
              "wellness"
            ],
            "example": "medical",
            "description": "Type of benefit"
          },
          "displayName": {
            "type": "string",
            "example": "Medical 1M Gold",
            "description": "Name of the benefit that will be visible to employees"
          },
          "activeAt": {
            "format": "date",
            "type": "string",
            "example": "2020-01-01",
            "description": "The start date for when the plan is effective in the format: YYYY-MM-DD"
          },
          "inactiveAt": {
            "format": "date",
            "type": "string",
            "nullable": true,
            "example": "2020-12-31",
            "description": "The end date for when the plan is no longer effective in the format: YYYY-MM-DD. This field does not need to be provided if a plan is anticipated to roll over from year to year"
          },
          "detailsUrl": {
            "type": "string",
            "nullable": true,
            "example": "https://example.com",
            "description": "URL to a benefit overview where an employee can see coverage details"
          },
          "code": {
            "type": "string",
            "nullable": true,
            "example": "MEDICAL_GOLD_2024",
            "description": "Internal code used to identify this benefit"
          },
          "features": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreateFeatureRequestDto"
            }
          },
          "tiers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreateTierRequestDto"
            }
          },
          "thresholds": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreateThresholdRequestDto"
            }
          }
        },
        "required": [
          "carrierId",
          "type",
          "displayName",
          "activeAt",
          "features",
          "tiers",
          "thresholds"
        ]
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ]
}
```