---
schema_version: "1"
id: b2c9b2ad7d37dea0fb3f1ea631ca4a2c121165b3cfa98eea3b8da603d738e8af
title: EndorsePolicy(EndorsePolicyInput, policyId)
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/insurance_developer_guide/apex_ConnectAPI_InsurancePolicyAdminFamily_EndorsePolicy_1.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.insurance_developer_guide.meta/insurance_developer_guide/apex_ConnectAPI_InsurancePolicyAdminFamily_EndorsePolicy_1.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: ad17853f21842201371709c293aed4efc81da5857fa5a0aa6a19124922cee9ab
description: Endorse the latest version of the insurance policy based on the context ID and effective date. You can also include other optional fields and additional details in the input JSON.
---
# EndorsePolicy(EndorsePolicyInput, policyId)

Endorse the latest version of the insurance policy based on the context ID and effective date. You can also include other optional fields and additional details in the input JSON.

## API Version

63.0

## Requires Chatter

No

## Signature

public static ConnectApi.PolicyOutputRepresentation EndorsePolicy(ConnectApi.EndorsePolicyInputRepresentation EndorsePolicyInput, String policyId)

## Parameters

**EndorsePolicyInput**

- Type: [ConnectApi.EndorsePolicyInputRepresentation](https://developer.salesforce.com/docs/atlas.en-us.insurance_developer_guide.meta/insurance_developer_guide/apex_connectapi_input_endorse_policy.htm "Input representation of the request to endorse a policy. Context ID of the quote that’s used for endorsement and date that the endorsed policy version is effective from must be passed in the request.")
- Input representation of the request to endorse a policy.

**policyId**

- Type: String
- ID of the policy to be endorsed.

## Return Value

Type: [ConnectApi.PolicyOutputRepresentation](https://developer.salesforce.com/docs/atlas.en-us.insurance_developer_guide.meta/insurance_developer_guide/apex_connectapi_output_policy_output.htm "Output representation of the policy details.")