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

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.

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”
}
]
}

Hello @ghzero and welcome to our community,

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

{
   "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