---
schema_version: "1"
id: 8b0ea86e7f90519dea7545def36281a3473f8d086cdc61a2483cac55570fc81e
title: Insurance Member 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_member_plans_management.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.insurance_developer_guide.meta/insurance_developer_guide/connect_resources_insurance_member_plans_management.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 7dfc0741e945f6d355614cf17b0e192a33ee7a0d6d6d99644fd933740f8b28ef
description: Create and update insurance plans for a group census member.
---
# Insurance Member Plans (POST, PATCH)

Create and update insurance plans for a group census member.

## Resource

{memberId} is a placeholder.

/connect/insurance/census-management/group-census-members/{memberId}/plans

## Resource Example

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

https://{yourInstance}.salesforce.com/services/data/v68.0/connect/insurance/census-management/group-census-members/0r6RM0000000h1pYAA/plans

## Available Version

65.0

## HTTP Methods

POST, PATCH

## Path Parameter for POST and PATCH

| Parameter Name | Type | Description | Required or Optional | Available Version |
| --- | --- | --- | --- | --- |
| memberId | String | ID of the group census member for whom insurance plans must be created or updated. | Required | 65.0 |

## Request Body for POST

### JSON Example

{
  "groupCensusMemberPlans": {
    "values": \[
      {
        "contractGroupPlanId": "0rgSG0000000e8jYAA"
      },
      {
        "contractGroupPlanId": "0rgSG0000000eALYAY"
      }
    \]
  }
}

This is a sample example to add off-contract coverages.

{
  "groupCensusMemberPlans": {
    "values": \[
      {
        "contractGroupPlanId": "0rgSG0000000e8jYAA"
      },
      {
        "productCode": "01tSG0000000abcDEF",
        "rootProductCode": "0rgSG0000000e8jYAA"
      }
    \]
  }
}

This is a sample example to add off-contract coverages with the attribute-level changes.

{
  "groupCensusMemberPlans": {
    "values": \[
      {
        "contractGroupPlanId": "0rgSG0000000e8jYAA",
        "attributes": {
          "values": \[
            {
              "attributeCode": "code",
              "attributeValue": "25"   
            }
          \]
        }
      }
    \]
  }
}

### Properties

| Name | Type | Description | Required or Optional | Available Version |
| --- | --- | --- | --- | --- |
| groupCensusMemberPlans | [Group Census Member Plan Input\[\]](connect_requests_group_census_member_plan_input.htm "Input representation for a single plan or coverage for a group census member.") | List of plans to add to the member. | Required | 65.0 |

## Response Body for POST

[Insurance Add Member Plans](https://developer.salesforce.com/docs/atlas.en-us.insurance_developer_guide.meta/insurance_developer_guide/connect_responses_insurance_add_member_plans_output.htm "Output representation for the add member plans operation.")

## Request Body for PATCH

### JSON Example

{
  "addedPlans": {
    "values": \[
      {
        "contractGroupPlanId": "0rgSG0000000e8jYAA"
      },
      {
        "contractGroupPlanId": "0rgSG0000000eALYAY"
      }
    \]
  },
  "upsertedPlans": {
    "contractGroupPlanId": "0rgxx00000000OEAAY",
    "attributes": {
      "values": \[
        {
          "attributeCode": "Deductible",
          "attributeValue": "0"
        }
      \]
    }
  },
  "deletedPlans": {
    "values": \[
      "0rgSG0000000eALYAY",
      "0rgSG0000000e8jYAA"
    \]
  }
}

### Properties

| Name | Type | Description | Required or Optional | Available Version |
| --- | --- | --- | --- | --- |
| addedPlans | [Group Census Member Plan Input\[\]](connect_requests_group_census_member_plan_input.htm "Input representation for a single plan or coverage for a group census member.") | List of plans to add to the member. | Optional | 65.0 |
| deletedPlans | String\[\] | List of group census member plan IDs to delete. | Optional | 65.0 |
| upsertedPlans | [Group Census Member Plan Input\[\]](connect_requests_group_census_member_plan_input.htm "Input representation for a single plan or coverage for a group census member.") | List of existing member plans to update or add if they don't exist, including attribute-level changes to plans the member already has. | Optional | 65.0 |

## Response Body for PATCH

[Insurance Update Member Plans](https://developer.salesforce.com/docs/atlas.en-us.insurance_developer_guide.meta/insurance_developer_guide/connect_responses_insurance_update_member_plans_output.htm "Output representation for the update member plans operation.")