# Rest API parameter

**URL:** <https://community.spicecrm.io/t/rest-api-parameter/184>\
**Category:** Uncategorized\
**Created:** [October 2, 2017, 7:25am UTC](https://community.spicecrm.io/t/rest-api-parameter/184 "2017-10-02T07:25:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![adrian](https://avatars.discourse-cdn.com/v4/letter/a/82dd89/32.png) [@adrian](https://community.spicecrm.io/u/adrian)\
**Post date:** [October 2, 2017, 7:25am UTC](https://community.spicecrm.io/t/rest-api-parameter/184/1 "2017-10-02T07:25:45Z")

</div>

I want to use rest api v4\_1. i create new rest api follow this link: [http://support.sugarcrm.com/Documentation/Sugar\_Developer/Sugar\_Developer\_Guide\_7.9/Integration/Web\_Services/v1\_-\_v4.1/Examples/REST/PHP/Creating\_or\_Updating\_a\_Record/](http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.9/Integration/Web_Services/v1_-_v4.1/Examples/REST/PHP/Creating_or_Updating_a_Record/) .I create lead module. new lead module was created but, record value; like first\_name, last\_name,etc. are not submitted in database. How I can fix this?

---

<div class="post-metadata">

**Author:** ![maretval](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@maretval](https://community.spicecrm.io/u/maretval)\
**Post date:** [October 2, 2017, 9:29am UTC](https://community.spicecrm.io/t/rest-api-parameter/184/2 "2017-10-02T09:29:14Z")

</div>

Did you build the data array correctly?

---

<div class="post-metadata">

**Author:** ![adrian](https://avatars.discourse-cdn.com/v4/letter/a/82dd89/32.png) [@adrian](https://community.spicecrm.io/u/adrian)\
**Post date:** [October 3, 2017, 8:15am UTC](https://community.spicecrm.io/t/rest-api-parameter/184/3 "2017-10-03T08:15:33Z")

</div>

Ok I use set\_entries method and it’s succeed.

But When I use get\_entry\_list method like php code below(link), the name\_value\_list array has not shown. How can I fix this?

[http://support.sugarcrm.com/Documentation/Sugar\_Developer/Sugar\_Developer\_Guide\_7.9/Integration/Web\_Services/v1\_-\_v4.1/Examples/REST/PHP/Retrieving\_a\_List\_of\_Records/](http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.9/Integration/Web_Services/v1_-_v4.1/Examples/REST/PHP/Retrieving_a_List_of_Records/)

 ![array](https://canada1.discourse-cdn.com/flex030/uploads/spicecrm/original/1X/2231b639c14182137e6977e07844c259b54526d5.png)

---

<div class="post-metadata">

**Author:** ![maretval](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@maretval](https://community.spicecrm.io/u/maretval)\
**Post date:** [October 4, 2017, 7:17am UTC](https://community.spicecrm.io/t/rest-api-parameter/184/4 "2017-10-04T07:17:23Z")

</div>

Adrian,  
how does the array look like that you send?  
Val

---

<div class="post-metadata">

**Author:** ![adrian](https://avatars.discourse-cdn.com/v4/letter/a/82dd89/32.png) [@adrian](https://community.spicecrm.io/u/adrian)\
**Post date:** [October 6, 2017, 3:03am UTC](https://community.spicecrm.io/t/rest-api-parameter/184/5 "2017-10-06T03:03:35Z")

</div>

maretval,  
This is array that I send. How can I Fix that? Thank you for your help.

 ![getentry](https://canada1.discourse-cdn.com/flex030/uploads/spicecrm/original/1X/a6ed34dbc6084f4a7e4e416e14dae8319dae55ac.png)

---

<div class="post-metadata">

**Author:** ![maretval](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@maretval](https://community.spicecrm.io/u/maretval)\
**Post date:** [October 6, 2017, 8:01pm UTC](https://community.spicecrm.io/t/rest-api-parameter/184/6 "2017-10-06T20:01:58Z")

</div>

Adrian,  
I analyzed the code and found a bug in the default rest service when using PHP7.  
I fixed it and pushed changes to public repository.  
Please download and overwrite following files:  
 ![FixServiceCore_AfterRelease_20170900](https://canada1.discourse-cdn.com/flex030/uploads/spicecrm/original/1X/f0b442958910293c68e5b3f862d9a79a7bf95106.PNG)

Val
