# Put of flow api produces z property on tab node

**URL:** <https://discourse.nodered.org/t/put-of-flow-api-produces-z-property-on-tab-node/46823>\
**Category:** General\
**Created:** [7 June 2021 15:49 UTC](https://discourse.nodered.org/t/put-of-flow-api-produces-z-property-on-tab-node/46823 "2021-06-07T15:49:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![H3llsing](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/h3llsing/32/40624_2.png) [@H3llsing](https://discourse.nodered.org/u/H3llsing)\
**Post date:** [7 June 2021 15:49 UTC](https://discourse.nodered.org/t/put-of-flow-api-produces-z-property-on-tab-node/46823/1 "2021-06-07T15:49:48Z")

</div>

Hey all,  
i was playing around with the api and was testing to update all flows and a specific flow via

- put /flows
- put /flow/{flowid}

i noticed that when you update a flow via **/flow/{flowid}** that the tab node inside of flows.json got a z property pointing to itself.  
Is this a bug? Custom nodes could iterate the z property to find it's parent node up to the tab node for instances.  
I tested it with latest release NodeRed 1.3.5

**How to reproduce:**

**GET /flows**

```auto
[
    {
        "id": "1a292e5f.95f132",
        "type": "tab",
        "label": "Flow 1",
        "disabled": false,
        "info": ""
    }
]

```

PUT /flow/1a292e5f.95f132  
body:

```auto
{
    "id": "1a292e5f.95f132",
    "label": "Flow 1",
    "disabled": false,
    "info": "Hello_Z",
    "nodes": []
}

```

**GET /flows**

```auto
[
    {
        "type": "tab",
        "label": "Flow 1",
        "id": "1a292e5f.95f132",
        "info": "Hello_Z",
        "disabled": false,
        "z": "1a292e5f.95f132"
    }
]

```

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [7 June 2021 15:51 UTC](https://discourse.nodered.org/t/put-of-flow-api-produces-z-property-on-tab-node/46823/2 "2021-06-07T15:51:11Z")

</div>

Yes it is a bug - please raise an issue.

---

<div class="post-metadata">

**Author:** ![H3llsing](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/h3llsing/32/40624_2.png) [@H3llsing](https://discourse.nodered.org/u/H3llsing)\
**Post date:** [7 June 2021 15:52 UTC](https://discourse.nodered.org/t/put-of-flow-api-produces-z-property-on-tab-node/46823/3 "2021-06-07T15:52:06Z")

</div>

Thanks for the fast reply. I will write an issue 🙂  
ticket: [Put of flow api produces z property on tab node · Issue #3010 · node-red/node-red · GitHub](https://github.com/node-red/node-red/issues/3010)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [21 June 2021 15:52 UTC](https://discourse.nodered.org/t/put-of-flow-api-produces-z-property-on-tab-node/46823/4 "2021-06-21T15:52:20Z")

</div>

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