# API new entity and rich text description update

**URL:** <https://community.fibery.io/t/api-new-entity-and-rich-text-description-update/4939>\
**Category:** API & Programming\
**Created:** [August 10, 2023, 8:03pm UTC](https://community.fibery.io/t/api-new-entity-and-rich-text-description-update/4939 "2023-08-10T20:03:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dukevannori](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@dukevannori](https://community.fibery.io/u/dukevannori)\
**Post date:** [August 10, 2023, 8:03pm UTC](https://community.fibery.io/t/api-new-entity-and-rich-text-description-update/4939/1 "2023-08-10T20:03:14Z")

</div>

Hi,

I made huge progress creating new entities through API from n8n.  
i get a positive response from the creation of the entity. including the fiberyID of the rich text field. now i want to update/add the rich text markdown. according to the docs following should return the secret to actually do it, the return is “success” but empty result - no secret.

```auto
[
         {
           "command": "fibery.entity/query",
           "args": {
             "query": {
               "q/from": "KNOWLEDGE/Activities",
               "q/select": [
                 "fibery/id",
                 { "KNOWLEDGE/Content": ["Collaboration~Documents/secret"] }
               ],
               "q/where": ["=", ["fibery/id"], "$id"],
               "q/limit": 1
             },
             "params": { "$id": "{{ $json["result"]["KNOWLEDGE/Content"]["fibery/id"] }}" }
           }
         }
      ]

```

return

```auto
[
  {
    "success": true,
    "result": []
  }
]

```

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [August 11, 2023, 7:22am UTC](https://community.fibery.io/t/api-new-entity-and-rich-text-description-update/4939/2 "2023-08-11T07:22:29Z")

</div>

Can you check that `{{ $json["result"]["KNOWLEDGE/Content"]["fibery/id"] }}` is correctly returning the UUID of the entity you are trying to query?

(you can find the UUID on the GUI by hovering over the public ID and pressing the alt key:)  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/9/950c5953a51fe6de1c7c0896cb2133eae9e0c5ed.png)

---

<div class="post-metadata">

**Author:** ![dukevannori](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@dukevannori](https://community.fibery.io/u/dukevannori)\
**Post date:** [August 11, 2023, 12:15pm UTC](https://community.fibery.io/t/api-new-entity-and-rich-text-description-update/4939/3 "2023-08-11T12:15:03Z")

</div>

i misunderstood the docs and thought i need to take the ID from the content field. its the id from the entity though. now it works!

see here for the whole process: [Obsidian to Fibery - #10 by dukevannori - Questions - n8n](https://community.n8n.io/t/obsidian-to-fibery/29084/10)

---

<div class="post-metadata">

**Author:** ![Denis\_Ka](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/denis_ka/32/8139_2.png) [@Denis\_Ka](https://community.fibery.io/u/Denis_Ka)\
**Post date:** [November 14, 2023, 4:04pm UTC](https://community.fibery.io/t/api-new-entity-and-rich-text-description-update/4939/4 "2023-11-14T16:04:30Z")

</div>

I have encountered the same problem.  
I suggests to explicitly specify in the documentation that to get the **fibery/secret** of the corresponding collaborative document you need to specify the **id of the entity** not _id from the content field_

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [November 14, 2023, 4:14pm UTC](https://community.fibery.io/t/api-new-entity-and-rich-text-description-update/4939/5 "2023-11-14T16:14:36Z")

</div>

> [@Denis\_Ka](#):
>
> I suggests to explicitly specify in the documentation that to get the **fibery/secret** of the corresponding collaborative document you need to specify the **id of the entity** not _id from the content field_

Can you point to the documentation that you find misleading (as specific as possible) to help us improve it 🙏

---

<div class="post-metadata">

**Author:** ![Denis\_Ka](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/denis_ka/32/8139_2.png) [@Denis\_Ka](https://community.fibery.io/u/Denis_Ka)\
**Post date:** [November 14, 2023, 6:00pm UTC](https://community.fibery.io/t/api-new-entity-and-rich-text-description-update/4939/6 "2023-11-14T18:00:51Z")

</div>

Sure. Here [Fibery API](https://api.fibery.io/#update-rich-text-field)

1. Get **fibery/secret** of the corresponding collaborative document. **fibery/id** here is **fibery/id of entity** containing rich text field, not fibery/id placed in rich text field.

I really like fibery, but I’m just learning.
