Hello,
I have copied a base in py code with Seatable API command account.copy_base(…). The source base includes a universal app which - after visually checking - has also been copied to the new base. So far so good. However, when I try to retrieve the new app uuid later in the code (even a considerable time later) via the following:
headers = {
"Authorization": f"Token {ADMIN_TOKEN}"
}
resp = requests.get(
f"{SERVER}/api/v2.1/universal-apps/",
headers=headers
)
apps = resp.json().get('my_managed_apps', [])
print(f"Apps returned: {len(apps)}")
for app in apps:
print(f"App Name: {app['app_name']}")
print(f"App UUID: {app['app_uuid']}")
print(f"Belongs to Base (dtable_uuid): {app['dtable_name']}\n")
print(f"Belongs to Base (dtable_uuid): {app['dtable_uuid']}\n")
the code executes fine but the response does not include the new base / new app that was previously created via py code (even after waiting for a long time). I need the app uuid to be able to construct the url for the universal application, so the app can be opened by user via field button and also to batch import users from the source app to to the newly created app (I assume users/groups dont get automatically copied by copy_base?). Copying occurs within the same group, with me as team admin, on entreprise cloud.
the goal is to allow users to be able to copy & access a new base from a template base, through a front-end “hub” application, without having access to the actual bases. What could be going wrong?
KR