> For the complete documentation index, see [llms.txt](https://ryan-44.gitbook.io/portrait/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ryan-44.gitbook.io/portrait/portrait-sdk/collective-portraits/write/renewportrait.md).

# renewPortrait()

```typescript
/**
   * Renew the Collective Portrait.
   *
   * @remarks
   * Renewing the Collective Portrait will renew the Collective Portrait for the number of years specified.
   * Anyone can renew the Collective Portrait.
   *
   * @param {number} payableAmount - The amount of ether to pay for the renewal.
   * @param {CollectivePortraitName | number} identity - The name of the Collective Portrait that the user would like to renew.
   * @param {number} years - The number of years to renew the Collective Portrait for.
   * @returns {ethers.ContractTransaction} - The transaction object of the transaction that renews the Collective Portrait.
   * @beta
   * @async
   */
  renewPortrait(
    payableAmount: number,
    identity: CollectivePortraitName | number,
    years: number,
  ): Promise<ethers.ContractTransaction> {
    const id =
      typeof identity === 'number' ? this.getNameByTokenId(identity) : identity;
    return this.portrait.portraitCollectiveContract.renewPortrait(
      payableAmount,
      id,
      years,
    );
  }
```
