API new entity and rich text description update

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.

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

[
  {
    "success": true,
    "result": []
  }
]
1 Like

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

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