# Api returns old values for collectionlink fileds value

**URL:** <https://discourse.getcockpit.com/t/api-returns-old-values-for-collectionlink-fileds-value/2070>\
**Category:** Support\
**Created:** [September 11, 2021, 12:56pm UTC](https://discourse.getcockpit.com/t/api-returns-old-values-for-collectionlink-fileds-value/2070 "2021-09-11T12:56:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![drascom](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/drascom/32/718_2.png) [@drascom](https://discourse.getcockpit.com/u/drascom)\
**Post date:** [September 11, 2021, 12:56pm UTC](https://discourse.getcockpit.com/t/api-returns-old-values-for-collectionlink-fileds-value/2070/1 "2021-09-11T12:56:23Z")

</div>

hi everyone;  
i’m not native english speaker sorry for mistakes :),  
the problem is when i update a field via api which is added as a collection link to another collection,  
i can see this update at admin panel (backend) but api request gives me ald value of that field.

Api response is

```auto
"entries": [
    {
      "name": "ADANA",
      "_by": "e5089a44633938387e00010a",
      "_mby": "e5089a44633938387e00010a",
      "_modified": 1631363616,
      "teams": [
        {
          "_id": "507d226063326474930002ee",
          "link": "teams",
          "display": "DENEME" <---------- old value
        }
      ],

```

json from admin panel is

```auto
  "name": "ADANA",
  "_by": "e5089a44633938387e00010a",
  "_mby": "e5089a44633938387e00010a",
  "_modified": 1631363616,
  "teams": [
    {
      "_id": "507d226063326474930002ee",
      "link": "teams",
      "display": "DENEME2" <-------------- new value
    }
  ],

```

i noticed collection link field is not really when i’m updating the source table fields. when i open the admin panel it is requesting related fields data from it’s own collection each time .  
i’m seeing old value because i’m only requesting main collection and not fetching collectionlinks fileds values from related table.

it is a bug isnt it ?
