# Copilot Data API adding Things to version-test from live version

**URL:** <https://forum.bubble.io/t/copilot-data-api-adding-things-to-version-test-from-live-version/70047>\
**Category:** APIs\
**Created:** [October 24, 2019, 4:40pm UTC](https://forum.bubble.io/t/copilot-data-api-adding-things-to-version-test-from-live-version/70047 "2019-10-24T16:40:26Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![pieter](https://avatars.discourse-cdn.com/v4/letter/p/82dd89/32.png) [@pieter](https://forum.bubble.io/u/pieter)\
**Post date:** [October 24, 2019, 4:40pm UTC](https://forum.bubble.io/t/copilot-data-api-adding-things-to-version-test-from-live-version/70047/1 "2019-10-24T16:40:26Z")

</div>

Setup a API Workflow that creates things into the DB through the @copilot Data API.

I need some urgent assistance now as any version workflow triggered (test/live etc.) creates the things in the version-test version.

All other data in the workflow action is created in the Live version except for the Data API things - those get created in the test version.

So in the live version:

1. Post JSON data to endpoint: [https://my.app/api/1.1/wf/json\_upload](https://my.app/api/1.1/wf/json_upload)
2. Create new unrelated thing (created in the **live** version)
3. Create things from DataAPI (created in the **test** -version)

@copilot I have tried reaching out via chat but it disappeared and also logged a bug via your site. Would appreciate if you could urgently assist.

Thanks,

---

<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:** [October 24, 2019, 10:32pm UTC](https://forum.bubble.io/t/copilot-data-api-adding-things-to-version-test-from-live-version/70047/2 "2019-10-24T22:32:42Z")

</div>

If the workflow use a POST to an API endpoint, be sure that the POST url doesn’t contain /version-test

---

<div class="post-metadata">

**Author:** ![pieter](https://avatars.discourse-cdn.com/v4/letter/p/82dd89/32.png) [@pieter](https://forum.bubble.io/u/pieter)\
**Post date:** [October 26, 2019, 9:53am UTC](https://forum.bubble.io/t/copilot-data-api-adding-things-to-version-test-from-live-version/70047/3 "2019-10-26T09:53:52Z")

</div>

@Jici

Just fyi - I am using the Live versions and not /version-test/… All actions in a single workflow creates and updates things in the live site except for the DATA API plugin - that gets created in the version-test version.

---

<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:** [October 26, 2019, 2:00pm UTC](https://forum.bubble.io/t/copilot-data-api-adding-things-to-version-test-from-live-version/70047/4 "2019-10-26T14:00:29Z")

</div>

I mean that your workflow request to data API may point to version-test endpoint and this may explain why whrn you test in live, the request to Data API is done to version-test DB. I guess this use thr API Connector. Check on this side.

---

<div class="post-metadata">

**Author:** ![pieter](https://avatars.discourse-cdn.com/v4/letter/p/82dd89/32.png) [@pieter](https://forum.bubble.io/u/pieter)\
**Post date:** [October 30, 2019, 7:39am UTC](https://forum.bubble.io/t/copilot-data-api-adding-things-to-version-test-from-live-version/70047/5 "2019-10-30T07:39:45Z")

</div>

Hi, This is using the Data API created by @copilot as below. It should automatically create in version-test when the version-test workflow endpoint is called and in live if the live endpoint is called:

Live endpoint: [https://my.app/api/1.1/wf/json\_upload](https://my.app/api/1.1/wf/json_upload) (This should create records on live version)  
Test endpoint: [https://my.app/version-test/api/1.1/wf/json\_upload](https://my.app/version-test/api/1.1/wf/json_upload) (This should create records on test version)

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

---

<div class="post-metadata">

**Author:** ![pieter](https://avatars.discourse-cdn.com/v4/letter/p/82dd89/32.png) [@pieter](https://forum.bubble.io/u/pieter)\
**Post date:** [November 4, 2019, 8:02am UTC](https://forum.bubble.io/t/copilot-data-api-adding-things-to-version-test-from-live-version/70047/6 "2019-11-04T08:02:20Z")

</div>

@copilot - I know you mentioned that you do not offer support over the forums however I have not received any feedback via email. Any feedback/update on this issue will be much appreciated. If you can maybe assist with an interim workaround also I would appreciate!

---

<div class="post-metadata">

**Author:** ![lmourasse](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/lmourasse/32/68351_2.png) [@lmourasse](https://forum.bubble.io/u/lmourasse)\
**Post date:** [September 14, 2020, 2:00am UTC](https://forum.bubble.io/t/copilot-data-api-adding-things-to-version-test-from-live-version/70047/8 "2020-09-14T02:00:02Z")

</div>

Hello. I have the exact same problem. Did you ever hear back or figure it out? I tried creating a different token for live vs. test but that still did not work…  
Thanks!

---

<div class="post-metadata">

**Author:** ![pieter](https://avatars.discourse-cdn.com/v4/letter/p/82dd89/32.png) [@pieter](https://forum.bubble.io/u/pieter)\
**Post date:** [September 14, 2020, 12:16pm UTC](https://forum.bubble.io/t/copilot-data-api-adding-things-to-version-test-from-live-version/70047/9 "2020-09-14T12:16:04Z")

</div>

@lmourasse, If I recall, I eventually ended up logging this with Bubble as a bug and was resolved. Maybe reach out to support for assistance.

Best of luck.

---

<div class="post-metadata">

**Author:** ![lmourasse](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/lmourasse/32/68351_2.png) [@lmourasse](https://forum.bubble.io/u/lmourasse)\
**Post date:** [September 15, 2020, 2:55am UTC](https://forum.bubble.io/t/copilot-data-api-adding-things-to-version-test-from-live-version/70047/10 "2020-09-15T02:55:21Z")

</div>

OK. Thanks @pieter for getting back to me. Will try that.  
It’s a very strange thing…

---

<div class="post-metadata">

**Author:** ![copilot](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/copilot/32/32859_2.png) [@copilot](https://forum.bubble.io/u/copilot)\
**Post date:** [September 23, 2020, 2:07pm UTC](https://forum.bubble.io/t/copilot-data-api-adding-things-to-version-test-from-live-version/70047/11 "2020-09-23T14:07:16Z")

</div>

Hey @pieter and @lmourasse,

Be sure you’re on the latest version of the plugin and are setting the Version field. 🙂

---

<div class="post-metadata">

**Author:** ![lmourasse](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/lmourasse/32/68351_2.png) [@lmourasse](https://forum.bubble.io/u/lmourasse)\
**Post date:** [September 24, 2020, 4:09am UTC](https://forum.bubble.io/t/copilot-data-api-adding-things-to-version-test-from-live-version/70047/12 "2020-09-24T04:09:50Z")

</div>

@pieter This is how it looks after downloading the latest version. Putting it out there if others face the same problem one day:

![image](https://us1.discourse-cdn.com/bubble/original/3X/5/4/546bf841902c48549aff7e42e75df1dc14f128fb.png)

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

---

<div class="post-metadata">

**Author:** ![jacobglanz9](https://avatars.discourse-cdn.com/v4/letter/j/5e9695/32.png) [@jacobglanz9](https://forum.bubble.io/u/jacobglanz9)\
**Post date:** [November 4, 2022, 5:00pm UTC](https://forum.bubble.io/t/copilot-data-api-adding-things-to-version-test-from-live-version/70047/13 "2022-11-04T17:00:34Z")

</div>

> [@lmourasse](#):
>
> Hello. I have the exact same problem. Did you ever

Instead of writing separate workflows for test and live versions, you can use bubbles “App version” option, “version-App version”. See screenshot below.

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

---

<div class="post-metadata">

**Author:** ![sam30](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sam30/32/215761_2.png) [@sam30](https://forum.bubble.io/u/sam30)\
**Post date:** [May 7, 2024, 10:17pm UTC](https://forum.bubble.io/t/copilot-data-api-adding-things-to-version-test-from-live-version/70047/14 "2024-05-07T22:17:12Z")

</div>

The weird thing is that I’m seeing the same base URL for the Data API, when I go to live mode or to test mode.  
This shouldn’t happen because the POST request to data API to create a new thing is creating it in test mode, so when app I run in production, it’s not able to access the data.

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