@@ -7,10 +7,10 @@ schema: 2.0.0
77layout : documentation
88permalink : /docs/ConfluencePS/commands/Add-Label/
99---
10-
1110# Add-Label
1211
1312## SYNOPSIS
13+
1414Add a new global label to an existing Confluence page.
1515
1616## SYNTAX
@@ -20,21 +20,20 @@ Add-ConfluenceLabel -apiURi <Uri> -Credential <PSCredential> [[-PageID] <Int32[]
2020```
2121
2222## DESCRIPTION
23+
2324Assign labels (one or more) to Confluence pages (one or more).
25+
2426If the label did not exist previously, it will be created.
2527Preexisting labels are not affected.
2628
2729## EXAMPLES
2830
2931### -------------------------- EXAMPLE 1 --------------------------
32+
3033``` powershell
3134Add-ConfluenceLabel -PageID 123456 -Label alpha -Verbose
3235```
3336
34- Description
35-
36- -----------
37-
3837Apply the label alpha to the wiki page with ID 123456.
3938-Verbose output provides extra technical details, if interested.
4039
@@ -44,10 +43,6 @@ Apply the label alpha to the wiki page with ID 123456.
4443Get-ConfluencePage -SpaceKey SRV | Add-ConfluenceLabel -Label servers -WhatIf
4544```
4645
47- Description
48-
49- -----------
50-
5146Simulates applying the label "servers" to all pages in the space with key SRV.
5247-WhatIf provides PageIDs of pages that would have been affected.
5348
@@ -57,16 +52,13 @@ Simulates applying the label "servers" to all pages in the space with key SRV.
5752Get-ConfluencePage -SpaceKey DEMO | Add-ConfluenceLabel -Label abc -Confirm
5853```
5954
60- Description
61-
62- -----------
63-
6455Applies the label "abc" to all pages in the space with key DEMO.
6556-Confirm prompts Yes/No for each page that would be affected.
6657
6758## PARAMETERS
6859
6960### -apiURi
61+
7062The URi of the API interface.
7163Value can be set persistently with Set-Info.
7264
@@ -83,6 +75,7 @@ Accept wildcard characters: False
8375` ` `
8476
8577### -Credential
78+
8679Confluence's credentials for authentication.
8780Value can be set persistently with Set-ConfluenceInfo.
8881
@@ -99,6 +92,7 @@ Accept wildcard characters: False
9992` ` `
10093
10194### -PageID
95+
10296The ID of the page to which apply the label to.
10397Accepts multiple IDs, including via pipeline input.
10498
@@ -115,6 +109,7 @@ Accept wildcard characters: False
115109` ` `
116110
117111### -Label
112+
118113One or more labels to be added.
119114Currently only supports labels of prefix "global".
120115
@@ -131,6 +126,7 @@ Accept wildcard characters: False
131126` ` `
132127
133128### -WhatIf
129+
134130Shows what would happen if the cmdlet runs.
135131The cmdlet is not run.
136132
@@ -147,6 +143,7 @@ Accept wildcard characters: False
147143` ` `
148144
149145### -Confirm
146+
150147Prompts you for confirmation before running the cmdlet.
151148
152149` ` ` yaml
0 commit comments