# Post new Entity to speciffic Database

**URL:** <https://community.fibery.io/t/post-new-entity-to-speciffic-database/6064>\
**Category:** API & Programming\
**Created:** [April 9, 2024, 3:46pm UTC](https://community.fibery.io/t/post-new-entity-to-speciffic-database/6064 "2024-04-09T15:46:38Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![humanKev](https://avatars.discourse-cdn.com/v4/letter/h/d07c76/32.png) [@humanKev](https://community.fibery.io/u/humanKev)\
**Post date:** [April 9, 2024, 3:46pm UTC](https://community.fibery.io/t/post-new-entity-to-speciffic-database/6064/1 "2024-04-09T15:46:38Z")

</div>

I’m using postman to try and set up a request that posts new entries to a speciffic db. So I’m using the [fibery.io/api/commands](http://fibery.io/api/commands) with this command object:  
`[  
{  
“command”: “fibery.entity/create”,  
“args”: {  
“type”: “KevinsDatabase”, //name of my DB  
“entity”: {  
“First Name”: “Testy”,  
“Last Name”: “Testerson”

```
         }
       }
     }
   ]`

```

But I’m receiving:  
`[{"success":false,"result":{"name":"entity.error/schema-type-not-found","message":"KevinsDatabase database was not found.","data":{"top":{"error/name":"entity.error/schema-type-not-found","error/schema-version":5156,"type":"KevinsDatabase"},"cause":{"error/name":"entity.error/schema-type-not-found","error/schema-version":5156,"type":"KevinsDatabase"},"error/schema-version":5156,"type":"KevinsDatabase"}}}]`

Should I be structuring my command differently or is there anything I’m missing?

---

<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:** [April 9, 2024, 3:52pm UTC](https://community.fibery.io/t/post-new-entity-to-speciffic-database/6064/2 "2024-04-09T15:52:23Z")

</div>

Database names include the Space, so you need to type to be something like “KevinsSpace/KevinsDatabase”

Check out the API section of the user guide.

---

<div class="post-metadata">

**Author:** ![humanKev](https://avatars.discourse-cdn.com/v4/letter/h/d07c76/32.png) [@humanKev](https://community.fibery.io/u/humanKev)\
**Post date:** [April 9, 2024, 4:07pm UTC](https://community.fibery.io/t/post-new-entity-to-speciffic-database/6064/3 "2024-04-09T16:07:53Z")

</div>

Thank you,

I did try adding “space” to the query but it didnt work. For context the path is like so:  
“.fibery.io/fibery/space/KevinsDatabase/database/Raw\_Form\_Data” and doing something like “/space/KevinsDatabase/” returns the same error. Do you have a link handy for the user guide?

---

<div class="post-metadata">

**Author:** ![humanKev](https://avatars.discourse-cdn.com/v4/letter/h/d07c76/32.png) [@humanKev](https://community.fibery.io/u/humanKev)\
**Post date:** [April 9, 2024, 4:17pm UTC](https://community.fibery.io/t/post-new-entity-to-speciffic-database/6064/4 "2024-04-09T16:17:51Z")

</div>

> [@humanKev](#):
>
> KevinsDatabase/database/Raw\_Form\_Data

I have also tried KevinsDatabase/database/Raw\_Form\_Data and KevinsDatabase/Raw\_Form\_Data, all of which give me the same error

---

<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:** [April 9, 2024, 4:27pm UTC](https://community.fibery.io/t/post-new-entity-to-speciffic-database/6064/5 "2024-04-09T16:27:08Z")

</div>

If KevinsDatabase is the space name and the database is called Raw\_Form\_Data then KevinsDatabase/Raw\_Form\_Data should work.  
Check your capitalisation though

---

<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:** [April 9, 2024, 4:31pm UTC](https://community.fibery.io/t/post-new-entity-to-speciffic-database/6064/6 "2024-04-09T16:31:06Z")

</div>

[https://the.fibery.io/@public/User\_Guide/Fibery-User-Guide-6568](https://the.fibery.io/@public/User_Guide/Fibery-User-Guide-6568)

---

<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:** [April 9, 2024, 4:31pm UTC](https://community.fibery.io/t/post-new-entity-to-speciffic-database/6064/7 "2024-04-09T16:31:45Z")

</div>

Maybe share a screenshot of your space/db and we might spot something

---

<div class="post-metadata">

**Author:** ![humanKev](https://avatars.discourse-cdn.com/v4/letter/h/d07c76/32.png) [@humanKev](https://community.fibery.io/u/humanKev)\
**Post date:** [April 9, 2024, 4:42pm UTC](https://community.fibery.io/t/post-new-entity-to-speciffic-database/6064/8 "2024-04-09T16:42:47Z")

</div>

I think something is up with that particular database so I created a new one. But when trying to populate “First Name” and “Last Name” like so:

```auto
[
         {
           "command": "fibery.entity/create",
           "args": {
             "type": "KevinsDatabase/KevTestDB", //name of my DB
             "entity": {
               "First Name": "Testy",
               "Last Name": "Testerson"
               
             }
           }
         }
]

```

I now get:  
[{“success”:false,“result”:{“name”:“entity.error/parse-type-field-failed”,“message”:“Cannot parse value for ‘First Name’ field in KevinsDatabase/KevTestDB database.\nCause: ‘First Name’ field was not found in KevinsDatabase/KevTestDB database.”,“data”:{“top”:{“error/name”:“entity.error/parse-type-field-failed”,“type”:“KevinsDatabase/KevTestDB”,“field”:“First Name”,“entity”:{“First Name”:“Testy”,“Last Name”:“Testerson”}},“cause”:{“error/name”:“entity.error/schema-field-not-found”,“error/schema-version”:5165,“type”:“KevinsDatabase/KevTestDB”,“field”:“First Name”},“type”:“KevinsDatabase/KevTestDB”,“field”:“First Name”,“entity”:{“First Name”:“Testy”,“Last Name”:“Testerson”}},“cause-message”:“‘First Name’ field was not found in KevinsDatabase/KevTestDB database.”,“cause-data”:{“error/name”:“entity.error/schema-field-not-found”,“error/schema-version”:5165,“type”:“KevinsDatabase/KevTestDB”,“field”:“First Name”}}}]

Perhaps I need underscores or all lowercase in my json? Here is a screen shot

 ![Screenshot 2024-04-09 at 12.38.44 PM](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/b/bbbbda9b62a032fd87f4a9e4b9eabf87d9532746.png)

---

<div class="post-metadata">

**Author:** ![humanKev](https://avatars.discourse-cdn.com/v4/letter/h/d07c76/32.png) [@humanKev](https://community.fibery.io/u/humanKev)\
**Post date:** [April 9, 2024, 5:14pm UTC](https://community.fibery.io/t/post-new-entity-to-speciffic-database/6064/9 "2024-04-09T17:14:42Z")

</div>

So the space has to be in the command for First and last… [  
{  
“command”: “fibery.entity/create”,  
“args”: {  
“type”: “KevinsDatabase/KevTestDB”, //name of my DB  
“entity”: {  
“KevinsDatabase/First Name”: “Testy”, // First Name of KevinsDatabase/KevTestDB  
“KevinsDatabase/Last Name”: “Testerson” // Last Name of KevinsDatabase/KevTestDB

```
         }
       }
     }

```

]  
Working thanks for the help
