# More options for API calls int the API Plugin Builder

**URL:** <https://forum.bubble.io/t/more-options-for-api-calls-int-the-api-plugin-builder/23439>\
**Category:** Idea\
**Created:** [January 22, 2018, 9:52am UTC](https://forum.bubble.io/t/more-options-for-api-calls-int-the-api-plugin-builder/23439 "2018-01-22T09:52:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicolas\_dap](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/nicolas_dap/32/26345_2.png) [@nicolas\_dap](https://forum.bubble.io/u/nicolas_dap)\
**Post date:** [January 22, 2018, 9:52am UTC](https://forum.bubble.io/t/more-options-for-api-calls-int-the-api-plugin-builder/23439/1 "2018-01-22T09:52:54Z")

</div>

Some ideas that would help @emmanuel creating better API calls for plugins.

Here an exemple :

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/a/9/a95801f56eed8be4da47f7f831f43e831a63cbc5.png)

1/ Add an **option “Body in a data JSON”** , so we can set parameters without writing ourselves the JSON. Some API use this. Body request is encapsulated in a “data” JSON.

2/ Options for “Fields” in the “Elements” and “Actions” tabs could be allowed in the “API calls” tab  
Let us add a **placeholder** or a reference about each filed

- Parameter “promotion\_type” =\> Placeholder to recall the onlt two possibilites
- Parameters “start” and “end” =\> Placeholder to define the custom format of the date

Enhance the **type** of each parameter

- Parameter “enabled” =\> Enhance a boolean Yes/No field
- Parameters “start” and “end” =\> Ask for a Date and let us define the custom format (that would be better than the placeholder)

---

<div class="post-metadata">

**Author:** ![nicolas\_dap](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/nicolas_dap/32/26345_2.png) [@nicolas\_dap](https://forum.bubble.io/u/nicolas_dap)\
**Post date:** [January 22, 2018, 11:38am UTC](https://forum.bubble.io/t/more-options-for-api-calls-int-the-api-plugin-builder/23439/2 "2018-01-22T11:38:20Z")

</div>

also, sorting the parameters in the order in which they appear in the JSON may help :

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/b/7/b7a3c83f9c67b32cfe34f7a304ca34208fe4373f.png)
