# An object with ref created via API dont apper on "referenced by" tab

**URL:** <https://community.datagerry.com/t/an-object-with-ref-created-via-api-dont-apper-on-referenced-by-tab/392>\
**Category:** Report a Bug\
**Created:** [August 11, 2021, 11:26am UTC](https://community.datagerry.com/t/an-object-with-ref-created-via-api-dont-apper-on-referenced-by-tab/392 "2021-08-11T11:26:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghzero](https://avatars.discourse-cdn.com/v4/letter/g/eb8c5e/32.png) [@ghzero](https://community.datagerry.com/u/ghzero)\
**Post date:** [August 11, 2021, 11:26am UTC](https://community.datagerry.com/t/an-object-with-ref-created-via-api-dont-apper-on-referenced-by-tab/392/1 "2021-08-11T11:26:01Z")

</div>

Hi guys, im looking for a cmdb and i love what you are doing in this project, congrats.

Not sure if its a bug or is designed to be like this but when i created a object via rest API and i had a reference to another object it don’t appears on the tab “referenced by”, showing only objects created inside the app.

Example: I Create TYPE1 and a TYPE2 who had a reference of a TYPE1 Object.

I add a TYPE2 Object inside datagerry.  
I add a TYPE2 Object via rest API.

I See both in the list of TYPE2, but in the TYPE1 Object “referenced by” tab only one appears.

 ![objectlist](https://europe1.discourse-cdn.com/flex013/uploads/datagerry/original/1X/ba63f0ab35bd1de9aede62f83639013882ac4fa1.png)

POST to /rest/object/  
{  
“author\_id”: 1,  
“type\_id”: 13,  
“fields”: [  
{  
“name”: “text-54701”,  
“value”: “type2-object”  
},  
{  
“name”: “text-69922”,  
“value”: “REST API”  
},  
{  
“name”: “ref-15375”,  
“value”: “38”  
}  
]  
}

---

<div class="post-metadata">

**Author:** ![sergej.dumler](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@sergej.dumler](https://community.datagerry.com/u/sergej.dumler)\
**Post date:** [August 12, 2021, 5:20am UTC](https://community.datagerry.com/t/an-object-with-ref-created-via-api-dont-apper-on-referenced-by-tab/392/2 "2021-08-12T05:20:09Z")

</div>

Hello @ghzero and welcome to our community,

thanks for the feedback. We will add this point to the documentation 🙂  
Back to your question. You need to make the following adjustment:

```auto
{
   "author_id":1,
   "type_id":13,
   "fields": [
      {
         "name": "text-54701",
         "value": "type2-object"
      },
      {
         "name": "text-69922",
         "value": "REST API"
      },
      {
         "name": "ref-15375",
         "value": 38 // must be an integer
      }
   ]

```

With best regards

---

<div class="post-metadata">

**Author:** ![adnan.smajic](https://dub1.discourse-cdn.com/flex013/user_avatar/community.datagerry.com/adnan.smajic/32/754_2.png) [@adnan.smajic](https://community.datagerry.com/u/adnan.smajic)\
**Post date:** [June 20, 2023, 10:49am UTC](https://community.datagerry.com/t/an-object-with-ref-created-via-api-dont-apper-on-referenced-by-tab/392/3 "2023-06-20T10:49:40Z")

</div>

Closed on June 20, 2023, 10:49am UTC


