---
schema_version: "1"
id: b9c155a15e1488c3ce79ced43e2131516db57fbcb1539f2b95cb2c42aef48b7e
title: Group Census Members With Plans (POST, PATCH)
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/insurance_developer_guide/connect_resources_insurance_group_census_members_with_plans.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.insurance_developer_guide.meta/insurance_developer_guide/connect_resources_insurance_group_census_members_with_plans.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 39e14129486eee6a0a93d92d57c04f61a71c43ec0c7fd70842b0b2f9d869bd22
description: Add or update a family of group census members and their insurance plans in a group census. Use POST to add members and plans, and PATCH to update an existing family and the plans associated with those members.
---
# Group Census Members With Plans (POST, PATCH)

Add or update a family of group census members and their insurance plans in a group census. Use POST to add members and plans, and PATCH to update an existing family and the plans associated with those members.

## Resource

{censusId} is a placeholder.

/connect/insurance/group-censuses/{censusId}/members-with-plans

## Resource Example

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

https://{yourInstance}.salesforce.com/services/data/v68.0/connect/insurance/group-censuses/0rfxx000000001aEAA/members-with-plans

## Available Version

68.0

## HTTP Methods

POST, PATCH

## Path Parameter for POST and PATCH

| Parameter Name | Type | Description | Required or Optional | Available Version |
| --- | --- | --- | --- | --- |
| censusId | String | ID of the group census that the members and plans belong to. | Required | 68.0 |

## Request Body for POST

### JSON Example

{
  "duplicateDetectionFields": \[
    "FirstName", "LastName", "Email"
  \],
  "flowName": "Process Group Census Member Data",
  "shouldExecuteConfigurationRule": false,
  "members": \[
    {
      "firstName": "Alex",
      "lastname": "Taylor",
      "email": "alex.taylor@example.com",
      "memberType": "Primary",
      "associationWithPrimaryMbr": "Self",
      "relationshipToPrimaryMember": "Self",
      "sourceSystemIdentifier": "WD-EMP-67890",
      "groupClassName": "Full-Time Salaried",
      "addedPlans": \[
        {
          "contractGroupPlanId": "0gpxx0000000001AAA",
          "name": "Gold Tier Medical Plan",
          "attributes": \[
            {
              "attributeCode": "COVERAGE\_TIER",
              "attributeValue": "Family"
            }
          \]
        }
      \]
    }
  \]
}

### Properties

| Name | Type | Description | Required or Optional | Available Version |
| --- | --- | --- | --- | --- |
| duplicateDetectionFields | String\[\] | List of field API names that are used with the default fields to generate a unique key for identifying duplicate members. The default fields are FirstName, LastName, AssociationWithPrimaryMbr, Email, and GroupCensusId. | Optional | 68.0 |
| flowName | String | Name of the flow to use for processing group census member data. The default value is Process Group Census Member Data. | Optional | 68.0 |
| members | [Member With Plans Input](https://developer.salesforce.com/docs/atlas.en-us.insurance_developer_guide.meta/insurance_developer_guide/connect_requests_member_with_plans_input.htm "Input representation of a group census member and the insurance plans to add or update for that member.")\[\] | List of group census members with their plan details to add or update. | Required | 68.0 |
| shouldExecuteConfigurationRule | Boolean | Indicates whether the flow runs the eligibility and configurator engine when validating the submitted plans ( true) or saves the submitted plans as-is ( false). The default value is false. | Optional | 68.0 |

## Response Body for POST

[Members With Plans Response](https://developer.salesforce.com/docs/atlas.en-us.insurance_developer_guide.meta/insurance_developer_guide/connect_responses_members_with_plans.htm "Details returned after a family of group census members and their plans is added or updated. The response includes a success flag, top-level errors, and per-member results.")

## Request Body for PATCH

### JSON Example

{
  "duplicateDetectionFields": \[
    "FirstName", "LastName", "Email"
  \],
  "flowName": "Process Group Census Member Data",
  "shouldExecuteConfigurationRule": false,
  "members": \[
    {
      "firstName": "Alex",
      "lastname": "Taylor",
      "email": "alex.taylor@example.com",
      "memberType": "Primary",
      "associationWithPrimaryMbr": "Self",
      "relationshipToPrimaryMember": "Self",
      "sourceSystemIdentifier": "WD-EMP-67890",
      "groupClassName": "Full-Time Salaried",
      "addedPlans": \[
        {
          "contractGroupPlanId": "0gpxx0000000001AAA",
          "name": "Gold Tier Medical Plan",
          "attributes": \[
            {
              "attributeCode": "COVERAGE\_TIER",
              "attributeValue": "Family"
            }
          \]
        }
      \]
    }
  \]
}

### Properties

| Name | Type | Description | Required or Optional | Available Version |
| --- | --- | --- | --- | --- |
| duplicateDetectionFields | String\[\] | List of field API names that are used with the default fields to generate a unique key for identifying duplicate members. The default fields are FirstName, LastName, AssociationWithPrimaryMbr, Email, and GroupCensusId. | Optional | 68.0 |
| flowName | String | Name of the flow to use for processing group census member data. The default value is Process Group Census Member Data. | Optional | 68.0 |
| members | [Member With Plans Input](https://developer.salesforce.com/docs/atlas.en-us.insurance_developer_guide.meta/insurance_developer_guide/connect_requests_member_with_plans_input.htm "Input representation of a group census member and the insurance plans to add or update for that member.")\[\] | List of group census members with their plan details to add or update. | Required | 68.0 |
| shouldExecuteConfigurationRule | Boolean | Indicates whether the flow runs the eligibility and configurator engine when validating the submitted plans ( true) or saves the submitted plans as-is ( false). The default value is false. | Optional | 68.0 |

## Response Body for PATCH

[Members With Plans Response](https://developer.salesforce.com/docs/atlas.en-us.insurance_developer_guide.meta/insurance_developer_guide/connect_responses_members_with_plans.htm "Details returned after a family of group census members and their plans is added or updated. The response includes a success flag, top-level errors, and per-member results.")