Deep Clone Group Census (POST)

Clone a group census and its hierarchy, including members, member plans, and plan attributes. Use this API to copy one census data into another, apply field-level overrides, and optionally filter or remap member plan references. This API clones all reference data linked to the group census ID and supports field-level transformations to add to new values on existing data. You can apply filters to select the specific records to clone, such as filtering group census member plans by quote ID, and can use custom context definitions to include unique fields and specialized mappings.

Resource 

{censusId} is a placeholder.

1/connect/insurance/group-censuses/{censusId}/actions/deep-clone

Resource Example 

Replace {yourInstance} with the My Domain name of your Salesforce org.

1https://{yourInstance}.salesforce.com/services/data/v68.0/connect/insurance/group-censuses/0rfxx000000001aEAA/actions/deep-clone

Available Version 

68.0

HTTP Methods 

POST

Path Parameter for POST 

Parameter NameTypeDescriptionRequired or OptionalAvailable Version
censusIdStringID of the source group census to clone.Required68.0

Request Body for POST 

JSON Example 

1{
2  "contextDefId": "Custom_GroupCensus_DeepClone",
3  "groupCensusFilters": {
4    "memberPlanFilter": {
5      "quoteId": "0Q0xx0000004CtoCAE"
6    }
7  },
8  "groupCensusReferenceMappings": {
9    "memberPlanReferenceMapping": {
10      "contractId": "800xx0000004C92AAE"
11    }
12  },
13  "targetGroupCensusOverrides": {
14    "Name": "Acme Enrollment Census",
15    "Description": "Enrollment census cloned from the quoting census"
16  }
17}

Properties 

NameTypeDescriptionRequired or OptionalAvailable Version
contextDefIdStringAPI name of the custom context definition that overrides the standard group census deep-clone context definition. Use this property when you need unique fields or specialized mappings that the standard context definition doesn’t include.Optional68.0
groupCensusFiltersGroup Census Filters InputFilters that limit which records in the source census hierarchy are cloned. For example, clone only the group census member plans that belong to a specified quote.Optional68.0
groupCensusReferenceMappingsGroup Census Reference Mappings Input Reference mappings to apply on the cloned records. Use these mappings to associate source references with target references, such as mapping quote line items to contract group plans.Optional68.0
targetGroupCensusOverridesObjectMap of field API names and values to apply to the cloned group census. Use this map to set new values on the target census, such as the census name or description.Optional68.0

Response Body for POST 

Group Census Deep Clone Response