addLabels
Syntax | addLabels(pageId, labels []) | Package | |
Alias | Pkg Usage |
Description
Adds one or multiple labels to a given page.
Parameters
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
return addLabels(1234455, "my_lable");
//1234455 represents the ID of the page.