# No record found in the request

**URL:** <https://community.dreamfactory.com/t/no-record-found-in-the-request/2827>\
**Category:** REST API\
**Created:** [June 8, 2016, 7:13am UTC](https://community.dreamfactory.com/t/no-record-found-in-the-request/2827 "2016-06-08T07:13:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vineet\_Chauhan](https://avatars.discourse-cdn.com/v4/letter/v/9fc29f/32.png) [@Vineet\_Chauhan](https://community.dreamfactory.com/u/Vineet_Chauhan)\
**Post date:** [June 8, 2016, 7:13am UTC](https://community.dreamfactory.com/t/no-record-found-in-the-request/2827/1 "2016-06-08T07:13:53Z")

</div>

Here is my table structure for Users

```
   Name Alias	Type	Required
APIKey text	false
Email text	false
FirstName string	false
HeightCm integer	false
id id false
LastName string	false
PasswordHash text	false
username string	false
WeightKg integer	false 

```

I am trying to insert with the following JSON request -

{ Username: ‘asasas’,  
FirstName: ‘sasasasa’,  
LastName: ‘asasasas’,  
Email: ‘xyz@gmail.com’,  
PasswordHash: ‘1234’ }

But getting back an error :

{“error”:{“context”:null,“message”:“No record(s) detected in request.”,“code”:400,“trace”:[“0 [internal function]: DreamFactory\Core\Resources\BaseDbTableResource-\>handlePost()”,“1 /Applications/dreamfactory-2.1.2-1/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Components/RestHandler.php(267): call\_user\_func(Array)”,"2 /Applications/dreamfactory-2.1.2-1/ap…

---

<div class="post-metadata">

**Author:** ![toddappleton](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/toddappleton/32/159_2.png) [@toddappleton](https://community.dreamfactory.com/u/toddappleton)\
**Post date:** [June 8, 2016, 4:27pm UTC](https://community.dreamfactory.com/t/no-record-found-in-the-request/2827/2 "2016-06-08T16:27:22Z")

</div>

You can’t POST a single record. You have to use the ‘resource’ array wrapper.

```
{
	"resource": [{
		"Username": "asasas",
		"FirstName": "sasasasa",
		"LastName": "asasasas",
		"Email": "xyz@gmail.com",
		"PasswordHash": "1234"
	}]
}
```
