Summary
Set Object Key
Description
Set an object key
Route
No Northbound API Available
Roles
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
obj |
object |
yes |
The object to modify. |
path |
array |
yes |
Path in array format to update (example ["a","0","key"]) |
value |
* |
yes |
Value to inject in path. |
Copied to Clipboard
{
"obj": {
"first": {
"second": "third"
}
},
"path": [
"first",
"second"
],
"value": {
"third": "last"
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"obj": {
"title": "obj",
"type": "object",
"properties": {},
"examples": [
{
"first": {
"second": "third"
}
}
]
},
"path": {
"title": "path",
"type": "array",
"items": [
{
"type": [
"string",
"number",
"integer",
"object",
"array",
"boolean"
]
}
],
"examples": [
[
"first",
"second"
]
]
},
"value": {
"title": "value",
"type": [
"string",
"number",
"integer",
"object",
"array",
"boolean"
],
"examples": [
{
"third": "last"
}
]
}
},
"required": [
"obj",
"path",
"value"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
object |
object |
The modified object |
Copied to Clipboard
{
"first": {
"second": {
"third": "last"
}
}
}
Copied to Clipboard
{
"title": "object",
"type": "object",
"properties": {},
"examples": [
{
"first": {
"second": {
"third": "last"
}
}
}
]
}