Summary
Array Shift
Description
Shift off the top data item from a job variable array
Route
No Northbound API Available
Roles
Parameters
Details Example Schema
Name
Type
Required
Description
job_id
string
yes
The Job ID
job_variable
string
yes
The name of the variable in the job's variables list.
Copied to Clipboard
{
"job_id": "5cb7b531d06cceb89fd21b1c",
"job_variable": "variableArrayName"
}
Copied to Clipboard
{
"type": "object",
"properties": {
"job_id": {
"$ref": "wfEngineCommon#/definitions/mongoObjectId"
},
"job_variable": {
"title": "job_variable",
"type": "string",
"examples": [
"variableArrayName"
]
}
},
"required": [
"job_id",
"job_variable"
],
"additionalProperties": false
}
Return
Details Example Schema
Name
Type
Description
shifted_item
*
Shifted Item
Copied to Clipboard
"top value in the array, now removed from the array"
Copied to Clipboard
{
"title": "shifted_item",
"type": [
"array",
"boolean",
"integer",
"number",
"object",
"string"
],
"examples": [
"top value in the array, now removed from the array"
]
}