---
title: "addLabels"
canonical: "https://support.appfire.com/space/PSCONF/340854699/addLabels"
format: markdown
---
> Macro (aura-html)

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | addLabels(pageId, labels []) | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Adds one or multiple labels to a given page.

Adds one or multiple labels to a given page.

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | pageId | Number | Yes | The ID of the page you want to add one or multiple labels to. |
> | labels | Array | Yes | The label(s) you want to add to a page. |

## Return Type

**Boolean**

Returns "true" if the label(s) were successfully added to a page.

## Example

```javascript
return addLabels(1234455, "my_lable");
 //1234455 represents the ID of the page.
```

## See also

> Macro (contentbylabel)