---
schema_version: "1"
id: ddbcfc8204286264d29d50dda01a4cd417a34a9630537e8337a3da3cb49c4967
title: Save Group Census Members Data Action
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/insurance_developer_guide/actions_obj_save_group_census_members_data.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.insurance_developer_guide.meta/insurance_developer_guide/actions_obj_save_group_census_members_data.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 5192afbfef912a2dc4d8314c5b365670671d8de408a1c7f4bce5847a40166bcd
description: Create or update the group census member records for primary members, update the IDs of the dependent members, and create or update groups census member records for the dependent members.
---
# Save Group Census Members Data Action

Create or update the group census member records for primary members, update the IDs of the dependent members, and create or update groups census member records for the dependent members.

This action is available in API version 65.0 and later.

## Supported REST HTTP Methods

**URI**: /services/data/vXX.X/actions/standard/saveGroupCensusMembersData

Where XX.X is the latest API version.

**Formats**: JSON

**HTTP Methods**: POST

**Authentication**: Authorization: Bearer TOKEN

Where TOKEN is your OAuth access token.

## Inputs

| Input | Type | Description |
| --- | --- | --- |
| asyncBulkRequestItemId | string | ID of the async bulk request item to use as reference for creating insurance async bulk record details records. |
| groupCensusId | string | ID of the parent group census record that's associated with the group census member records. |
| groupCensusMembers | sobject | Collection of group census member records to be save. Maximum limit size is 2000. |
| operation | string | Required if asyncBulkRequestItemId isn't specified. Operation to perform on the group census member records. Valid values are Add and Update. |
| shouldLogErrors | boolean | Indicates whether errors that occur while saving group census member plans must be recorded in a content document ( true ) or not ( false ). The default values is false . |

## Outputs

| Output | Type | Description |
| --- | --- | --- |
| errorsData | Apex-defined | Collection of error records for synchronous Add Members and Update Members services. Maximum limit is 2000. |
| savedGroupCensusMembers | sobject | Collection of group census member records that are created or updated during the execution of the action. It contains both primary and dependent members that are successfully processed. Maximum limit is 2000. |

## Example

Sample Request

{
  "inputs": \[
    {
      "asyncBulkRequestItemId": "15Uxx0000004CfoEAE",
      "groupCensusId": "0rfxx0000000005AAA",
      "groupCensusMembers": \[
        {
          "Name": "IronMan",
          "FirstName": "Iron",
          "Lastname": "Man",
          "Gender": "Male",
          "GroupClassId": "0rExx0000000001EAA",
          "GroupClassName": "Executive",
          "GroupCensusId": "0rfxx0000000005AAA",
          "Email": "test1@gtest.com",
          "AssociationWithPrimaryMbr": "Self",
          "MemberKey": "c01c21aecc57e259f2faeb9484149c8e"
        }
      \]
    }
  \]
}

Sample Response

{
  "actionName": "saveGroupCensusMembersData",
  "savedGroupCensusMembers": \[
    {
      "attributes": {
        "type": "GroupCensusMember"
      },
      "Email": "test2@gtest.com",
      "AssociationWithPrimaryMbr": "Spouse",
      "FirstName": "Pepper",
      "MemberKey": "ad8b415683d7e6b6cc8d5a975c8cf75b",
      "Lastname": "Potts",
      "Gender": "Female",
      "GroupCensusId": "0rfxx0000000005AAA",
      "Name": "PepperPotts"
    }
  \]
}