• Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login
FusionAuth
  • Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login

is there an easy way to use all the defaults when creating a Tenant via the API?

Scheduled Pinned Locked Moved
Q&A
tenant api
1
2
996
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D
    dan
    last edited by 15 Jun 2020, 15:24

    is there an easy way to use all the defaults when creating a new Tenant via the API?

    --
    FusionAuth - Auth for devs, built by devs.
    https://fusionauth.io

    1 Reply Last reply Reply Quote 0
    • D
      dan
      last edited by 15 Jun 2020, 15:33

      Yes, you want to use sourceTenantId when creating the tenant

      You can keep a tenant around or use a particular one as the template, and then always create a new tenant using the sourceTenanId. This does not do a merge however, so if you want specific values, you’d want to do something like:

      1. Call create w/ sourceTenantId
      2. Consume the response and then modify what you want
      3. Call update or patch with the new values

      --
      FusionAuth - Auth for devs, built by devs.
      https://fusionauth.io

      1 Reply Last reply Reply Quote 0
      2 out of 2
      • First post
        2/2
        Last post