# Variables passed via REST service are not set correctly.

**URL:** <https://forum.knime.com/t/variables-passed-via-rest-service-are-not-set-correctly/91658>\
**Category:** KNIME Community Hub\
**Tags:** bug\
**Created:** [March 19, 2026, 12:27pm UTC](https://forum.knime.com/t/variables-passed-via-rest-service-are-not-set-correctly/91658 "2026-03-19T12:27:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarDol](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/m/6f9a4e/32.png) [@MarDol](https://forum.knime.com/u/MarDol)\
**Post date:** [March 19, 2026, 12:27pm UTC](https://forum.knime.com/t/variables-passed-via-rest-service-are-not-set-correctly/91658/1 "2026-03-19T12:27:44Z")

</div>

Hello! Looks like I can’t pass variables values and use them in case I run pipeline as a REST service.

I have a simple test workflow with template variable input:

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/2/a/2a1e7bdeca3b1f704348589effb9618c1c228316.png)

the filter condition is the following:

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/4/9/49d695bf130ec9c9b13facb9f4fcb840b7cfb927.png)

I’m trying to run pipeline via API, pass the variable value, but looks it still uses the default one. Either it is a bug, or the variables should be passed somehow differently.

**The request details:**  
_curl -X ‘POST’ \  
‘[https://api.hub.knime.com/deployments/rest:1f79f491-1f83-49be-874a-68ca0aa8c4b8/execution?reset=false&timeout=-1](https://api.hub.knime.com/deployments/rest:1f79f491-1f83-49be-874a-68ca0aa8c4b8/execution?reset=false&timeout=-1)’ \  
-H ‘accept: application/vnd.mason+json’ \  
-H ‘Content-Type: application/json’ \  
-d ‘{  
“table-input”: {  
“table-data”: [  
[  
“X0273T21000100001”,  
53,  
“F”,  
“Caucasian”,  
“Indigestion”,  
160.484,  
73.2,  
“53 C F”,  
“false”,  
“09/11/1990 00:00:00.000”,  
“None”  
],  
[  
“X0273T21000100002”,  
40,  
“F”,  
“Caucasian”,  
“Indigestion”,  
163.646,  
93,  
“40 C F”,  
“true”,  
“04/03/1991 00:00:00.000”,  
“None”  
],  
[  
“X0273T21000200001”,  
50,  
“F”,  
“Caucasian”,  
“Indigestion”,  
158.027,  
62.7,  
“50 C F”,  
“true”,  
“05/15/1990 00:00:00.000”,  
“High”  
],  
[  
“X0273T21000200002”,  
30,  
“F”,  
“Other”,  
“Indigestion”,  
158.419,  
64.5,  
“30 O F”,  
“true”,  
“02/24/1991 00:00:00.000”,  
“None”  
],  
[  
“X0273T21000300001”,  
50,  
“F”,  
“Caucasian”,  
“Indigestion”,  
161.695,  
67.6,  
“50 C F”,  
“false”,  
“03/05/1991 00:00:00.000”,  
“None”  
],  
[  
“X0273T21000300002”,  
43,  
“M”,  
“Caucasian”,  
“Indigestion”,  
188.234,  
91,  
“43 C M”,  
“false”,  
“05/23/1991 00:00:00.000”,  
“None”  
],  
[  
“X0273T21000300003”,  
26,  
“F”,  
“Caucasian”,  
“Indigestion”,  
174.705,  
74.1,  
“26 C F”,  
“false”,  
“08/02/1990 00:00:00.000”,  
“High”  
],  
[  
“X0273T21000300004”,  
47,  
“M”,  
“Caucasian”,  
“Indigestion”,  
175.228,  
85.1,  
“47 C M”,  
“true”,  
“01/21/1990 00:00:00.000”,  
“None”  
],  
[  
“X0273T21000300005”,  
30,  
“F”,  
“Other”,  
“Indigestion”,  
150.288,  
64,  
“30 O F”,  
“false”,  
“02/18/1991 00:00:00.000”,  
“High”  
],  
[  
“X0273T21000300006”,  
32,  
“M”,  
“Caucasian”,  
“Indigestion”,  
180.298,  
67,  
“32 C M”,  
“true”,  
“01/14/1991 00:00:00.000”,  
“None”  
]  
],  
“table-spec”: [  
{  
“USUBJID”: “string”  
},  
{  
“AGE”: “int”  
},  
{  
“SEX”: “string”  
},  
{  
“RACE”: “string”  
},  
{  
“DIS\_POP”: “string”  
},  
{  
“HEIGHT”: “double”  
},  
{  
“WEIGHT”: “double”  
},  
{  
“DEMOG”: “string”  
},  
{  
“CONTROL”: “string”  
},  
{  
“STARTED”: “string”  
},  
{  
“SEVERITY”: “string”  
}  
]  
},  
“variable-input”: {  
“race”: “Other”  
}  
}’_

**Response body:**

```auto
{
  "id": "9cb56c21-b217-45c7-b4f4-327123056535",
  "createdAt": "2026-03-19T10:17:09.567Z[GMT]",
  "name": "Test_passing_variables_REST_service 2026-03-19 10.17.09",
  "creator": "account:app-pw:db1c9424-5848-4700-8d25-87fab90ab2a4",
  "state": "EXECUTION_FINISHED",
  "jobState": "LOADED",
  "workflowState": "EXECUTION_FINISHED",
  "startedExecutionAt": "2026-03-19T10:17:11.975605Z[Etc/UTC]",
  "finishedExecutionAt": "2026-03-19T10:17:12.076831Z[Etc/UTC]",
  "deploymentId": "rest:1f79f491-1f83-49be-874a-68ca0aa8c4b8",
  "nodeMessages": [
    {
      "node": "Container Input (Variable) 3:1:5",
      "messageType": "WARNING",
      "message": "Default variables are output"
    }
  ],
  "type": "execution",
  "scope": "account:team:5206ad8a-2ed0-48b9-8a02-b4ab6325915e",
  "creatorName": "mardol PRO",
  "initiatorId": "account:user:ee1307af-c776-43ae-9a6c-7c3ae6bd2b29",
  "initiatorName": "mardol",
  "isSwapped": false,
  "hasReport": false,
  "workflow": "/Users/mardol PRO/Data App Examples Space/Test_passing_avriables_REST_service",
  "workflowId": "*CS5AxYH8KVU_59xj",
  "spaceVersion": "1",
  "itemVersion": "1",
  "createdVia": "generic client",
  "executorID": "b36c92dd-5579-459c-93ff-2b35123a6a0d@001f6c12-9b8a-4e3d-b7c2-9a5e1f0d8c34",
  "executorId": "b36c92dd-5579-459c-93ff-2b35123a6a0d@001f6c12-9b8a-4e3d-b7c2-9a5e1f0d8c34",
  "executorName": "001f6c12-9b8a-4e3d-b7c2-9a5e1f0d8c34",
  "executionContext": "001f6c12-9b8a-4e3d-b7c2-9a5e1f0d8c34",
  "discardAfterSuccessfulExec": false,
  "discardAfterFailedExec": false,
  "errors": [],
  "actions": [],
  "configuration": {},
  "inputParameters": {
    "variable-input": {
      "race": "Caucasian"
    },
    "table-input": {
      "table-spec": [
        {
          "USUBJID": "string"
        },
        {
          "AGE": "int"
        },
        {
          "SEX": "string"
        },
        {
          "RACE": "string"
        },
        {
          "DIS_POP": "string"
        },
        {
          "HEIGHT": "double"
        },
        {
          "WEIGHT": "double"
        },
        {
          "DEMOG": "string"
        },
        {
          "CONTROL": "string"
        },
        {
          "STARTED": "string"
        },
        {
          "SEVERITY": "string"
        }
      ],
      "table-data": [
        [
          "X0273T21000100001",
          53,
          "F",
          "Caucasian",
          "Indigestion",
          160.484,
          73.2,
          "53 C F",
          "false",
          "09/11/1990 00:00:00.000",
          "None"
        ],
        [
          "X0273T21000100002",
          40,
          "F",
          "Caucasian",
          "Indigestion",
          163.646,
          93,
          "40 C F",
          "true",
          "04/03/1991 00:00:00.000",
          "None"
        ],
        [
          "X0273T21000200001",
          50,
          "F",
          "Caucasian",
          "Indigestion",
          158.027,
          62.7,
          "50 C F",
          "true",
          "05/15/1990 00:00:00.000",
          "High"
        ],
        [
          "X0273T21000200002",
          30,
          "F",
          "Other",
          "Indigestion",
          158.419,
          64.5,
          "30 O F",
          "true",
          "02/24/1991 00:00:00.000",
          "None"
        ],
        [
          "X0273T21000300001",
          50,
          "F",
          "Caucasian",
          "Indigestion",
          161.695,
          67.6,
          "50 C F",
          "false",
          "03/05/1991 00:00:00.000",
          "None"
        ],
        [
          "X0273T21000300002",
          43,
          "M",
          "Caucasian",
          "Indigestion",
          188.234,
          91,
          "43 C M",
          "false",
          "05/23/1991 00:00:00.000",
          "None"
        ],
        [
          "X0273T21000300003",
          26,
          "F",
          "Caucasian",
          "Indigestion",
          174.705,
          74.1,
          "26 C F",
          "false",
          "08/02/1990 00:00:00.000",
          "High"
        ],
        [
          "X0273T21000300004",
          47,
          "M",
          "Caucasian",
          "Indigestion",
          175.228,
          85.1,
          "47 C M",
          "true",
          "01/21/1990 00:00:00.000",
          "None"
        ],
        [
          "X0273T21000300005",
          30,
          "F",
          "Other",
          "Indigestion",
          150.288,
          64,
          "30 O F",
          "false",
          "02/18/1991 00:00:00.000",
          "High"
        ],
        [
          "X0273T21000300006",
          32,
          "M",
          "Caucasian",
          "Indigestion",
          180.298,
          67,
          "32 C M",
          "true",
          "01/14/1991 00:00:00.000",
          "None"
        ]
      ]
    }
  },
  "outputValues": {
    "table-output": {
      "table-spec": [
        {
          "USUBJID": "string"
        },
        {
          "AGE": "int"
        },
        {
          "SEX": "string"
        },
        {
          "RACE": "string"
        },
        {
          "DIS_POP": "string"
        },
        {
          "HEIGHT": "double"
        },
        {
          "WEIGHT": "double"
        },
        {
          "DEMOG": "string"
        },
        {
          "CONTROL": "string"
        },
        {
          "STARTED": "string"
        },
        {
          "SEVERITY": "string"
        }
      ],
      "table-data": [
        [
          "X0273T21000100001",
          53,
          "F",
          "Caucasian",
          "Indigestion",
          160.484,
          73.2,
          "53 C F",
          "false",
          "09/11/1990 00:00:00.000",
          "None"
        ],
        [
          "X0273T21000100002",
          40,
          "F",
          "Caucasian",
          "Indigestion",
          163.646,
          93,
          "40 C F",
          "true",
          "04/03/1991 00:00:00.000",
          "None"
        ],
        [
          "X0273T21000200001",
          50,
          "F",
          "Caucasian",
          "Indigestion",
          158.027,
          62.7,
          "50 C F",
          "true",
          "05/15/1990 00:00:00.000",
          "High"
        ],
        [
          "X0273T21000300001",
          50,
          "F",
          "Caucasian",
          "Indigestion",
          161.695,
          67.6,
          "50 C F",
          "false",
          "03/05/1991 00:00:00.000",
          "None"
        ],
        [
          "X0273T21000300002",
          43,
          "M",
          "Caucasian",
          "Indigestion",
          188.234,
          91,
          "43 C M",
          "false",
          "05/23/1991 00:00:00.000",
          "None"
        ],
        [
          "X0273T21000300003",
          26,
          "F",
          "Caucasian",
          "Indigestion",
          174.705,
          74.1,
          "26 C F",
          "false",
          "08/02/1990 00:00:00.000",
          "High"
        ],
        [
          "X0273T21000300004",
          47,
          "M",
          "Caucasian",
          "Indigestion",
          175.228,
          85.1,
          "47 C M",
          "true",
          "01/21/1990 00:00:00.000",
          "None"
        ],
        [
          "X0273T21000300006",
          32,
          "M",
          "Caucasian",
          "Indigestion",
          180.298,
          67,
          "32 C M",
          "true",
          "01/14/1991 00:00:00.000",
          "None"
        ]
      ]
    }
  }
}

```

Thank you in advance for your help!

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [June 17, 2026, 12:27pm UTC](https://forum.knime.com/t/variables-passed-via-rest-service-are-not-set-correctly/91658/2 "2026-06-17T12:27:58Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
