---
schema_version: "1"
id: c7eb03c10a90852f4d5953fbd9597694eeea02cce52daa11d3fc664e9dbcdd29
title: RenewPolicy(RenewPolicyInput, policyId)
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/insurance_developer_guide/apex_ConnectAPI_InsurancePolicyAdminFamily_RenewPolicy_1.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.insurance_developer_guide.meta/insurance_developer_guide/apex_ConnectAPI_InsurancePolicyAdminFamily_RenewPolicy_1.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 53d4b7b6e8453aea9665ce0900f8ea99842d3ee8d016f6b240fb30bea7f77547
description: Use the context ID of an existing policy to renew a policy. Modify the renewal date, and add optional fields and additional information in the input JSON.
---
# RenewPolicy(RenewPolicyInput, policyId)

Use the context ID of an existing policy to renew a policy. Modify the renewal date, and add optional fields and additional information in the input JSON.

## API Version

63.0

## Requires Chatter

No

## Signature

public static ConnectApi.PolicyOutputRepresentation RenewPolicy(ConnectApi.RenewPolicyInputRepresentation RenewPolicyInput, String policyId)

## Parameters

**RenewPolicyInput**

- Type: [ConnectApi.RenewPolicyInputRepresentation](https://developer.salesforce.com/docs/atlas.en-us.insurance_developer_guide.meta/insurance_developer_guide/apex_connectapi_input_renew_policy.htm "Input representation of the request to renew a policy.")
- Input representation of the request to renew a policy.

**policyId**

- Type: String
- ID of the insurance policy that's to be renewed.

## 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.")