# /!\\ API calls - initial parameters applied when empty

**URL:** <https://forum.bubble.io/t/api-calls-initial-parameters-applied-when-empty/51771>\
**Category:** Tips\
**Created:** [March 12, 2019, 12:48pm UTC](https://forum.bubble.io/t/api-calls-initial-parameters-applied-when-empty/51771 "2019-03-12T12:48:21Z")\
**Posts on this page:** 12\
**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:** [March 12, 2019, 12:48pm UTC](https://forum.bubble.io/t/api-calls-initial-parameters-applied-when-empty/51771/1 "2019-03-12T12:48:21Z")

</div>

This is in Tips, but it could be considered as a Bug @Bubble . Anyway, since I’ve encountered ths issue twice theses last two months, here a warning you may find out helpful.

In the API Connector, you definied your parameters with exemples like here :

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

Some of them may be optionals, or sometimes must be set empty in your request. If so, you may leave the fields empty in your api call :  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/e/8/e838afbe7df499d2c455e06c4b1042fc5375597e.png) ![image](https://us1.discourse-cdn.com/bubble/original/3X/3/f/3f82467d4ca5ea029f562b81860e31b0af16103a.png)

Seems logic right ? “hls” is empty, so the request will be. “dash+hlsfmp4” is empty if the parameter is false

Actually, not. For both, **parameters defined at first will be applied !**

**Values set in the API Connector or in the Plugin Bulider are not just some indications for the editor later on or some test values for initializing your request, there actually are the default parameters applied whenever another value is not set.**

Response from @neerja :  
_You can type an empty space instead of leaving the parameter input empty to get the desired result._

Be sure the space does not break anyhting, especially if it is a URL parameter.

---

<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:** [September 27, 2019, 7:25am UTC](https://forum.bubble.io/t/api-calls-initial-parameters-applied-when-empty/51771/2 "2019-09-27T07:25:41Z")

</div>

@Bubble Here a new exemple why empty field should be considered when we use a plugin’s api call.

see with the plugin MailChimp Extended. I subribe a new user :

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/1/f/1fc8cae83eef6a0d78fc7fb8351f7bef25c40ee6.png)

but the values used to setup the API call are used :

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

---

<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:** [August 28, 2020, 3:35pm UTC](https://forum.bubble.io/t/api-calls-initial-parameters-applied-when-empty/51771/4 "2020-08-28T15:35:19Z")

</div>

Please, @Bubble, if the user cleans a field, consider this as an empty value, and do not automatically set the value with the default value used during initialization.

How can this be obvious from the Editor ?

---

<div class="post-metadata">

**Author:** ![lottemint.md](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/lottemint.md/32/26549_2.png) [@lottemint.md](https://forum.bubble.io/u/lottemint.md)\
**Post date:** [August 28, 2020, 3:45pm UTC](https://forum.bubble.io/t/api-calls-initial-parameters-applied-when-empty/51771/5 "2020-08-28T15:45:34Z")

</div>

Yup, that’s an annoying one since these parameters are as helpful indicators for users.  
I hope the Bubble pushes a fix for this.

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [August 28, 2020, 4:39pm UTC](https://forum.bubble.io/t/api-calls-initial-parameters-applied-when-empty/51771/6 "2020-08-28T16:39:01Z")

</div>

This is a known behavior. Take time to empty your data in API Connector.  
I think that in some case, it’s a good thing to have a default value. But we don’t have an option to set this. I Think bubble should have a checkbox that we can use to say if we want to keep it as default value or not

---

<div class="post-metadata">

**Author:** ![AlexK](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/alexk/32/18647_2.png) [@AlexK](https://forum.bubble.io/u/AlexK)\
**Post date:** [August 29, 2020, 9:39am UTC](https://forum.bubble.io/t/api-calls-initial-parameters-applied-when-empty/51771/7 "2020-08-29T09:39:23Z")

</div>

I lost some hours due to this behaviour the other day. It’s really not obvious to the users. In the case that I do want to use the values from the API Connector, I have 3 options:  
1.) Mark it as private in the API Connector  
2.) Leave it as it is in the Editor  
3.) Delete the entry in the Editor  
On the other hand there seems to be only 1 way to have an empty parameter by entering an empty space in the Editor.

From a UX standpoint the obvious choice of having an empty parameter is by deleting the pre-fill in the Editor.  
It would help tremendously debugging specific API situations.

---

<div class="post-metadata">

**Author:** ![bartek.dev](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/bartek.dev/32/50610_2.png) [@bartek.dev](https://forum.bubble.io/u/bartek.dev)\
**Post date:** [November 1, 2020, 2:22pm UTC](https://forum.bubble.io/t/api-calls-initial-parameters-applied-when-empty/51771/8 "2020-11-01T14:22:15Z")

</div>

Touchy subject.

Just ran into it myself setting up Stripe and I had to create new API call just as a workaround.

e.g. blank state is impossible to create so there is a need for API call “Create customer” just before creating checkout session if one doesn’t no want to do that before that.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/2/0/202d4c2403959554fde666a0e0a8b5f461a2fcf3.png)  
[https://stripe.com/docs/api/checkout/sessions/create#create\_checkout\_session-customer](https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer)

so +1 on blank states!

---

<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:** [November 27, 2020, 2:45pm UTC](https://forum.bubble.io/t/api-calls-initial-parameters-applied-when-empty/51771/9 "2020-11-27T14:45:15Z")

</div>

Haha this is not a joke. I’m stuck using my own plugin because blank states are still impossible. @allenyang @emmanuel Could we get an insight from you about this ? We have been several users pointing to this for more than two years.

Can’t you had an option for each field : “don’t use this value used for initialization if the user leaves the field empty” ? or anything else solving this issue ?

Pease !

---

<div class="post-metadata">

**Author:** ![mazorshimon](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mazorshimon/32/66873_2.png) [@mazorshimon](https://forum.bubble.io/u/mazorshimon)\
**Post date:** [April 22, 2021, 4:09pm UTC](https://forum.bubble.io/t/api-calls-initial-parameters-applied-when-empty/51771/10 "2021-04-22T16:09:40Z")

</div>

Any resolution on this?

p.s.  
I used empty space and it worked as suggest by OP but this is a hackey workaround

---

<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:** [April 22, 2021, 9:14pm UTC](https://forum.bubble.io/t/api-calls-initial-parameters-applied-when-empty/51771/11 "2021-04-22T21:14:49Z")

</div>

How many people are not aware about this when they use plugins ? most of them I guess.

[Again again… how many times should we report this? - Bugs - Bubble Forum](http://forum.bubble.io/t/again-again-how-many-times-should-we-report-this/143060)

---

<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:** [May 15, 2021, 7:10pm UTC](https://forum.bubble.io/t/api-calls-initial-parameters-applied-when-empty/51771/12 "2021-05-15T19:10:44Z")

</div>

2 years later ! [[New Features] API Connector - Announcements - Bubble Forum](http://forum.bubble.io/t/new-features-api-connector/151053)

Glad it has been added

---

<div class="post-metadata">

**Author:** ![neilmagnuson11](https://avatars.discourse-cdn.com/v4/letter/n/74df32/32.png) [@neilmagnuson11](https://forum.bubble.io/u/neilmagnuson11)\
**Post date:** [May 16, 2024, 1:20am UTC](https://forum.bubble.io/t/api-calls-initial-parameters-applied-when-empty/51771/13 "2024-05-16T01:20:58Z")

</div>

Wow…an empty space just saved me hours of headaches lol…thanks!
