# Data format condition not met

**URL:** <https://community.forestadmin.com/t/data-format-condition-not-met/2965>\
**Category:** Help me!\
**Tags:** howtos\
**Created:** [July 22, 2021, 11:19am UTC](https://community.forestadmin.com/t/data-format-condition-not-met/2965 "2021-07-22T11:19:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vaclav](https://avatars.discourse-cdn.com/v4/letter/v/34f0e0/32.png) [@Vaclav](https://community.forestadmin.com/u/Vaclav)\
**Post date:** [July 22, 2021, 11:19am UTC](https://community.forestadmin.com/t/data-format-condition-not-met/2965/1 "2021-07-22T11:19:03Z")

</div>

Hello,  
I am trying to set up “Get one record”.

I am getting response back, but apparently in bad format.

 ![Screenshot from 2021-07-22 13-07-18](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/2/2e1697338bf6507773e3b9331b4bc2351bf98fbd.png)

Could you please provide me with a link to the documentation, where it is described how to proceed in this case?

That exclamation sign near to “Data format” says:  
Use the input below to transform your API result at your convenience…

Is there any documentation please, how use this section?

Thank you

Vaclav

---

<div class="post-metadata">

**Author:** ![Arnaud\_Moncel](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/arnaud_moncel/32/24_2.png) [@Arnaud\_Moncel](https://community.forestadmin.com/u/Arnaud_Moncel)\
**Post date:** [July 22, 2021, 12:42pm UTC](https://community.forestadmin.com/t/data-format-condition-not-met/2965/2 "2021-07-22T12:42:46Z")

</div>

Hi @Vaclav 👋 If you over the tooltip next `Data format`

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/4/49722cacffc9377689b3ee78824cb6274b2f0fe1.png)  
It should be explain what is the expected format.

Her you want to configure the `getOne` routes, the expected format is a simple object with a least an `id` attribute inside.

What I see, you have an array containing this object !  
I suggest you to use the `code editor`, on the left, to put this code :

```javascript
return data[0];

```

After that click on the `test` button, all should be ok now.  
Let me know if that help.

---

<div class="post-metadata">

**Author:** ![Vaclav](https://avatars.discourse-cdn.com/v4/letter/v/34f0e0/32.png) [@Vaclav](https://community.forestadmin.com/u/Vaclav)\
**Post date:** [July 22, 2021, 1:01pm UTC](https://community.forestadmin.com/t/data-format-condition-not-met/2965/3 "2021-07-22T13:01:06Z")

</div>

Thank you @Arnaud_Moncel , yes, it helped.  
I am wondering if there is any documentation, how to work with the field where is written

```javascript
return data;

```

Or which syntax to use here.

Thank you

---

<div class="post-metadata">

**Author:** ![Arnaud\_Moncel](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/arnaud_moncel/32/24_2.png) [@Arnaud\_Moncel](https://community.forestadmin.com/u/Arnaud_Moncel)\
**Post date:** [July 22, 2021, 1:07pm UTC](https://community.forestadmin.com/t/data-format-condition-not-met/2965/4 "2021-07-22T13:07:12Z")

</div>

Unfortunately we don’t have much documentation. The only thing we have is this [Install Forest Admin on a REST API - Documentation](https://docs.forestadmin.com/documentation/how-tos/setup/install-forest-admin-on-a-rest-api).

The syntax is JavaScript. Here `data` represent the `Data recieved` you see in the top right.

---

<div class="post-metadata">

**Author:** ![Vaclav](https://avatars.discourse-cdn.com/v4/letter/v/34f0e0/32.png) [@Vaclav](https://community.forestadmin.com/u/Vaclav)\
**Post date:** [July 22, 2021, 1:23pm UTC](https://community.forestadmin.com/t/data-format-condition-not-met/2965/5 "2021-07-22T13:23:08Z")

</div>

Ok, thank you @Arnaud_Moncel for you help!
