Summary
Adds an element to the end of the array.
Description
Adds one element to the end of an array and returns the (newly modified) array.
Route
No Northbound API Available
Roles
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
arr |
array |
yes |
The array to push onto |
elementN |
* |
yes |
The element to push |
Copied to Clipboard
{
"arr": [
"Device1",
"Device2"
],
"elementN": "Device3"
}
Copied to Clipboard
{
"type": "object",
"properties": {
"arr": {
"title": "arr",
"type": "array",
"items": [
{
"type": [
"string",
"number",
"integer",
"object",
"array",
"boolean",
"null"
]
}
],
"examples": [
[
"Device1",
"Device2"
]
]
},
"elementN": {
"type": [
"array",
"string",
"boolean",
"integer",
"number",
"object"
],
"title": "elementN",
"examples": [
"Device3"
]
}
},
"required": [
"arr",
"elementN"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
pushedArray |
array |
The array with the pushed element |
Copied to Clipboard
[
"Device1",
"Device2",
"Device3"
]
Copied to Clipboard
{
"title": "pushedArray",
"type": "array",
"items": [
{
"type": [
"string",
"number",
"integer",
"object",
"array",
"boolean",
"null"
]
}
],
"examples": [
[
"Device1",
"Device2",
"Device3"
]
]
}