POST api/groupplantemplates/{id}/copyplan

Creates a copy of an existing group plan template.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The identifier of the group plan template to be copied

integer

Required

Body Parameters

The model containing information about the new plan to be created

GroupPlanTemplateCopyPlanModel
NameDescriptionTypeAdditional information
NewPlanName

The order in which this address should appear in a list

string

None.

StartDate

Gets or sets the Start Date

date

None.

EndDate

Gets or sets the End Date

date

None.

CopyGeneralOptionsRules

Gets or sets the Copy General Options Rules boolean.

boolean

None.

CopyGeneralOptionsByDrugRules

Gets or sets the Copy General Options By Drug Rules boolean.

boolean

None.

CopyOverrideRules

Gets or sets the Copy Override Rules boolean.

boolean

None.

CopyStandardFormularyRules

Gets or sets the Copy Standard Formulary Rules boolean.

boolean

None.

CopyDAWRules

Gets or sets the Copy DAW Rules boolean.

boolean

None.

CopyPlanFormularyRules

Gets or sets the Copy Plan Formulary Rules boolean.

boolean

None.

CopyPharmacyFormularyRules

Gets or sets the Copy Pharmacy Formulary Rules boolean.

boolean

None.

CopyMemberFormularyRules

Gets or sets the Copy Member Formualry Rules boolean.

boolean

None.

CopyPrescriberFormularyRules

Gets or sets the Copy Prescriber Formulary Rules boolean.

boolean

None.

CopyStepTherapyRules

Gets or sets the Copy Step Therapy Rules boolean.

boolean

None.

CopyClaimLimitRules

Gets or sets the Copy Claim Limit Rules boolean.

boolean

None.

CopyClaimLimitDefaultRules

Gets or sets the Copy ClaimLimitDefault Rules boolean.

boolean

None.

CopyDrugOptionsRules

Gets or sets the Copy Drug Options Rules boolean.

boolean

None.

CopyClaimOptionsRules

Gets or sets the Copy Claim Options Rules boolean.

boolean

None.

CopyFinalFormularyRules

Gets or sets the Copy Final Formulary Rules boolean.

boolean

None.

CopyBenefitsRules

Gets or sets the Copy Benefits Rules boolean.

boolean

None.

CopyPostPricingRules

Gets or sets the Copy Post Pricing Rules boolean.

boolean

None.

Request Formats

application/json, text/json, application/json-patch+json

Sample:
{
  "newPlanName": "sample string 1",
  "startDate": "2025-05-30T20:50:53.2521045-05:00",
  "endDate": "2025-05-30T20:50:53.2521045-05:00",
  "copyGeneralOptionsRules": true,
  "copyGeneralOptionsByDrugRules": true,
  "copyOverrideRules": true,
  "copyStandardFormularyRules": true,
  "copyDAWRules": true,
  "copyPlanFormularyRules": true,
  "copyPharmacyFormularyRules": true,
  "copyMemberFormularyRules": true,
  "copyPrescriberFormularyRules": true,
  "copyStepTherapyRules": true,
  "copyClaimLimitRules": true,
  "copyClaimLimitDefaultRules": true,
  "copyDrugOptionsRules": true,
  "copyClaimOptionsRules": true,
  "copyFinalFormularyRules": true,
  "copyBenefitsRules": true,
  "copyPostPricingRules": true
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

An IHttpActionResult representing the outcome of the operation: - Ok() if the copy operation is successful. - BadRequest with errors if validation fails or the plan is not eligible for copying. - NotFound if the specified plan template or related entities are not found. - InternalServerError in case of an exception.

None.