CreateBenefitInput
An input type used when creating a benefit
input CreateBenefitInput {
benefitsProgramId: ID
description: String
endDate: LocalDate
name: String
organizationId: ID
startDate: LocalDate!
templateId: ID!
}
Fields
CreateBenefitInput.benefitsProgramId ● ID scalar
The ID of the benefits program to which the benefit belongs. Required unless organizationId is provided.
CreateBenefitInput.description ● String scalar
The description of the benefit. If unspecified, defaults to the description from the template.
CreateBenefitInput.endDate ● LocalDate scalar
The end date of the Benefit.
CreateBenefitInput.name ● String scalar
The name of the benefit. If unspecified, defaults to the name from the template.
CreateBenefitInput.organizationId ● ID scalar
The ID of the Organization to which the benefit belongs. The benefit is created in the Organization's benefits
program. If the Organization has no benefits program, one is created. If it has more than one, the request is
rejected; provide benefitsProgramId instead. Required unless benefitsProgramId is provided. If both are
provided, the benefits program must belong to this Organization. The ID of a Division is rejected.
CreateBenefitInput.startDate ● LocalDate! non-null scalar
The start date of the Benefit.
CreateBenefitInput.templateId ● ID! non-null scalar
The ID of the template to use when creating the benefit
Member Of
createBenefit mutation