Clone / Copy Application
-
Using the “sourceId” for tenant, I can create a clone of a template tenant for my clients.
I would also like to do the same at an application level for each tenant, too, but don’t see the same concept of “sourceId”. Is there a (un)documented way of doing this?
This is my proposed flow:
- client signs up and I use the FA API to generate a default tenant for them.
- client chooses one or more application types from my portal and I use the FA API to generate the appropriate application(s) for their tenant
- client uses my portal to manage staff roles across their tenant and default role for signup to an application by their staff and I use the FA API to manage those roles and show the staff users signed up and their assigned roles
-
There is no current copy API call for applications. There is an open GitHub issue for such a feature.
For now, you could:
- create a template application
- retrieve a template application JSON
- modify the JSON as needed, including the tenantId and other config
- create a new application using the create application API call
Will that work?
-
@dan That will work just fine. With that I'll actually just make a quick service that takes in the arguments to adjust and it generate that json for me. Thanks!
Just because it would align with all my other triggered processes, I'll actually make it as a postgres function so I can call it with my graphql api via hasura. This will actually work very well.