> 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/setminimumcontrolshares.md).

# setMinimumControlShares()

```typescript
/**
   * Set the minimum number of shares required to control the Collective Portrait.
   *
   * @remarks
   * Setting the minimum number of shares required to control the Collective Portrait is the number of shares that a shareholder must have to be able to control the Collective Portrait.
   * Control of the Collective Portrait is defined as being able to change the Collective Portrait's hash, minimum control shares, and share split.
   * Setting the minimum number of shares requires to own the minimum number of shares required to control the Collective Portrait.
   *
   * @param {CollectivePortraitName | number} identity - The name of the Collective Portrait that the user would like to set the minimum number of shares required to control for.
   * @param {number} shares - The minimum number of shares required to control the Collective Portrait.
   * @returns {ethers.ContractTransaction} - The transaction object of the transaction that sets the minimum number of shares required to control the Collective Portrait.
   * @beta
   * @async
   */
  setMinimumControlShares(
    identity: CollectivePortraitName | number,
    shares: number,
  ): Promise<ethers.ContractTransaction> {
    const id =
      typeof identity === 'number' ? identity : this.getTokenIdByName(identity);
    return this.portrait.portraitCollectiveContract.setMinimumControlShares(
      id,
      shares,
    );
  }

```
