POST api/groups/{groupid}/groupplans/{id}/copyplan
Creates a copy of an existing group plan using the specified template and settings.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
groupid |
The identifier of the group associated with the plan to be copied. |
integer |
Required |
id |
The identifier of the group plan to be copied. |
integer |
Required |
Body Parameters
The model containing information about the new plan to be created.
GroupPlanCopyPlanModelName | Description | Type | Additional information |
---|---|---|---|
DestinationNo |
Gets or Sets the Destination PharmacyBranch ID |
integer |
None. |
PlanTemplateNo |
Gets or sets the Template ID |
integer |
None. |
OverrideTemplate |
Gets or sets the Override Template field |
boolean |
None. |
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
{ "destinationNo": 1, "planTemplateNo": 1, "overrideTemplate": true, "newPlanName": "sample string 2", "startDate": "2025-05-30T00:45:18.5549062-05:00", "endDate": "2025-05-30T00:45:18.5559065-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 not available.
Response Information
Resource Description
An IHttpActionResult representing the outcome of the operation: - Ok() if the copy operation is successful. - BadRequest with a list of validation errors if validation fails. - NotFound if the specified plan or related entities are not found. - InternalServerError in case of an exception.
None.