---
schema_version: "1"
id: e931118ad9f69bdb2b85039e6d917df8a9b35604c477b87216a9f338a11ffda2
title: postInsuranceSyncCensusSummary(groupCensusId)
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/insurance_developer_guide/apex_ConnectAPI_InsuranceGroupBenefitsFamily_postInsuranceSyncCensusSummary.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.insurance_developer_guide.meta/insurance_developer_guide/apex_ConnectAPI_InsuranceGroupBenefitsFamily_postInsuranceSyncCensusSummary.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 33d065a3dae541621d2d4abd763a732d8b330d2836c358a9d45bccf74b42f12e
description: Synchronize and recalculate the summary data for a group census.
---
# postInsuranceSyncCensusSummary(groupCensusId)

Synchronize and recalculate the summary data for a group census.

## API Version

63.0

## Requires Chatter

No

## Signature

public static ConnectApi.InsuranceCensusSummarySyncOutputRepresentation postInsuranceSyncCensusSummary(ConnectApi.InsuranceCensusSummarySyncInputRepresentation censusSummarySyncInputParam, String groupCensusId)

## Parameters

**groupCensusId**

- Type: String
- ID of the group census to synchronize.

## Return Value

Type: [ConnectApi.InsuranceCensusSummarySyncOutputRepresentation](https://developer.salesforce.com/docs/atlas.en-us.insurance_developer_guide.meta/insurance_developer_guide/apex_connectapi_output_insurance_census_summary_sync.htm "Output representation for the insurance employee census summary synchronization process.")

## Example

Here's an example of how to invoke the Insurance Sync Census Summary API from Apex code.

// Census Summary Sync via Connect API (simple version)

// 1) Create the top-level input (no fields required)
ConnectApi.InsuranceCensusSummarySyncInputRepresentation input =
    new ConnectApi.InsuranceCensusSummarySyncInputRepresentation();

// 2) Execute the POST API with the Group Census Id
String groupCensusId = '0rfxx000000000RAAQ';

try {
    ConnectApi.InsuranceCensusSummarySyncOutputRepresentation result =
        ConnectApi.InsuranceGroupBenefitsFamily.postInsuranceSyncCensusSummary(input, groupCensusId);

    System.debug('Census Summary Sync result: ' + JSON.serializePretty(result));
} catch (Exception e) {
    System.debug('Error during Census Summary Sync: ' + e.getMessage());
}