<commit_before>---
external help file:
applicable: SharePoint Online
schema: 2.0.0
---
# Set-PnPClientSideWebPart

## SYNOPSIS
Set Client-Side Web Part properties

## SYNTAX 

```powershell
Set-PnPClientSideWebPart -Identity <ClientSideWebPartPipeBind>
                         -Page <ClientSidePagePipeBind>
                         [-Title <String>]
                         [-PropertiesJson <String>]
                         [-Web <WebPipeBind>]
                         [-Connection <SPOnlineConnection>]
```

## DESCRIPTION
Sets specific client side webpart properties. Notice that the title parameter will only set the -internal- title of webpart. The title which is shown in the UI will, if possible, have to be set using the PropertiesJson parameter. Use Get-PnPClientSideWebPart to retrieve the instance id and properties of a webpart.

## EXAMPLES

### ------------------EXAMPLE 1------------------
```powershell
PS:> Set-PnPClientSideWebPart -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82 -PropertiesJson $myproperties<commit_msg>Updated documentation for Set-PnPClientSideWebPart, changed Get-PnPClientSideWebPart to Get-PnPClientSideComponent<commit_after>---
external help file:
applicable: SharePoint Online
schema: 2.0.0
---
# Set-PnPClientSideWebPart

## SYNOPSIS
Set Client-Side Web Part properties

## SYNTAX 

```powershell
Set-PnPClientSideWebPart -Identity <ClientSideWebPartPipeBind>
                         -Page <ClientSidePagePipeBind>
                         [-Title <String>]
                         [-PropertiesJson <String>]
                         [-Web <WebPipeBind>]
                         [-Connection <SPOnlineConnection>]
```

## DESCRIPTION
Sets specific client side webpart properties. Notice that the title parameter will only set the -internal- title of webpart. The title which is shown in the UI will, if possible, have to be set using the PropertiesJson parameter. Use Get-PnPClientSideComponent to retrieve the instance id and properties of a webpart.

## EXAMPLES

### ------------------EXAMPLE 1------------------
```powershell
PS:> Set-PnPClientSideWebPart -Page Home -InstanceId a2875399-d6ff-43a0-96da-be6ae5875f82 -PropertiesJson $myproperties
{'fraction_non_alphanumeric': 0.11025756891098057, 'fraction_numerical': 0.021690013556258474, 'mean_word_length': 2.6117455138662318, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6633868', 'n_tokens_mistral': 653, 'n_tokens_neox': 588, 'n_words': 194}