Skip to content

Commit 7dc877d

Browse files
authored
Merge pull request MicrosoftDocs#2095 from expiscornovus/patch-4
Update Set-SPOSiteScript.md
2 parents 9b814ef + b3d0bbf commit 7dc877d

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

sharepoint/sharepoint-ps/sharepoint-online/Set-SPOSiteScript.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Set-SPOSiteScript
1919
-Title <string>
2020
-Content <string>
2121
[-Description <string>]
22+
[-Version <Int32>]
2223
[<CommonParameters>]
2324
```
2425

@@ -33,6 +34,7 @@ Updates a previously uploaded site script.
3334
This example updates a previously created site script. Any site designs referencing it execute the updated script.
3435

3536
```
37+
$newnavscript = @'
3638
{
3739
"$schema": "schema.json",
3840
"actions": [
@@ -55,7 +57,11 @@ This example updates a previously created site script. Any site designs referenc
5557
],
5658
"bindata": { },
5759
"version": 2
58-
}
60+
};
61+
'@
62+
63+
Set-SPOSiteScript -Identity edaec4ec-71e2-4026-ac1e-6686bb30190d -Content $newnavscript -Version 2
64+
5965
```
6066

6167
## PARAMETERS
@@ -123,6 +129,21 @@ Default value: None
123129
Accept pipeline input: False
124130
Accept wildcard characters: False
125131
```
132+
### -Version
133+
134+
A version number of the script.
135+
136+
```yaml
137+
Type: Int32
138+
Parameter Sets: (All)
139+
Aliases:
140+
Applicable: SharePoint Online
141+
Required: False
142+
Position: Named
143+
Default value: None
144+
Accept pipeline input: False
145+
Accept wildcard characters: False
146+
```
126147
127148
128149
## INPUTS

0 commit comments

Comments
 (0)