<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Create a Tenant using API with Golang]]></title><description><![CDATA[<p dir="auto">Hello guys I have been writing a Golang Operator that need to create a fusion auth Tenant and application, but I am facing a problem every time that a run the application the response is Bad request 400</p>
<p dir="auto">Version Fusion auth :  <strong>1.15.8</strong></p>
<p dir="auto">There are some documentation with examples</p>
<p dir="auto">Above my payload</p>
<p dir="auto">Regards !</p>
<pre><code class="language-json">
{
    "tenant": {
        "emailConfiguration": {
            "host": "notused.com",
            "port": 1001,
            "security": "NONE",
            "verifyEmail": false,
            "verifyEmailWhenChanged": false
        },
        "eventConfiguration": {
            "events": {
                "jwt.public-key.update": {
                    "enabled": false,
                    "transactionType": "None"
                },
                "jwt.refresh-token.revoke": {
                    "enabled": false,
                    "transactionType": "None"
                },
                "user.bulk.create": {
                    "enabled": false,
                    "transactionType": "None"
                },
                "user.create": {
                    "enabled": false,
                    "transactionType": "None"
                },
                "user.deactivate": {
                    "enabled": false,
                    "transactionType": "None"
                },
                "user.delete": {
                    "enabled": false,
                    "transactionType": "None"
                },
                "user.login.failed": {
                    "enabled": false,
                    "transactionType": "None"
                },
                "user.login.success": {
                    "enabled": false,
                    "transactionType": "None"
                },
                "user.reactivate": {
                    "enabled": false,
                    "transactionType": "None"
                },
                "user.registration.create": {
                    "enabled": false,
                    "transactionType": "None"
                },
                "user.registration.delete": {
                    "enabled": false,
                    "transactionType": "None"
                },
                "user.registration.update": {
                    "enabled": false,
                    "transactionType": "None"
                },
                "user.update": {
                    "enabled": false,
                    "transactionType": "None"
                }
            }
        },
        "externalIdentifierConfiguration": {
            "authorizationGrantIdTimeToLiveInSeconds": 30,
            "changePasswordIdGenerator": {
                "length": 32,
                "type": "randomBytes"
            },
            "changePasswordIdTimeToLiveInSeconds": 600,
            "deviceCodeTimeToLiveInSeconds": 1800,
            "deviceUserCodeIdGenerator": {
                "length": 6,
                "type": "randomAlphaNumeric"
            },
            "emailVerificationIdGenerator": {
                "length": 32,
                "type": "randomBytes"
            },
            "emailVerificationIdTimeToLiveInSeconds": 86400,
            "externalAuthenticationIdTimeToLiveInSeconds": 300,
            "oneTimePasswordTimeToLiveInSeconds": 60,
            "passwordlessLoginGenerator": {
                "length": 32,
                "type": "randomBytes"
            },
            "passwordlessLoginTimeToLiveInSeconds": 180,
            "registrationVerificationIdGenerator": {
                "length": 32,
                "type": "randomBytes"
            },
            "registrationVerificationIdTimeToLiveInSeconds": 86400,
            "setupPasswordIdGenerator": {
                "length": 32,
                "type": "randomBytes"
            },
            "setupPasswordIdTimeToLiveInSeconds": 86400,
            "twoFactorIdTimeToLiveInSeconds": 300,
            "twoFactorTrustIdTimeToLiveInSeconds": 2592000
        },
        "failedAuthenticationConfiguration": {
            "actionDuration": 3,
            "actionDurationUnit": "MINUTES",
            "resetCountInSeconds": 60,
            "tooManyAttempts": 5
        },
        "familyConfiguration": {
            "allowChildRegistrations": true,
            "deleteOrphanedAccounts": false,
            "deleteOrphanedAccountsDays": 30,
            "enabled": false,
            "maximumChildAge": 12,
            "minimumOwnerAge": 21,
            "parentEmailRequired": false
        },
        "httpSessionMaxInactiveInterval": 3600,
        "issuer": "hom.local",
        "jwtConfiguration": {
            "accessTokenKeyId": "00000-00000-0000-00000-0000000",
            "enabled": true,
            "idTokenKeyId": "000000-00000-000000-00000-000000",
            "refreshTokenTimeToLiveInMinutes": 43200,
            "timeToLiveInSeconds": 86400
        },
        "maximumPasswordAge": {
            "days": 15,
            "enabled": true
        },
        "minimumPasswordAge": {
            "enabled": false,
            "seconds": 30
        },
        "name": "ws-company",
        "passwordEncryptionConfiguration": {
            "encryptionScheme": "salted-pbkdf2-hmac-sha256",
            "encryptionSchemeFactor": 24000,
            "modifyEncryptionSchemeOnLogin": false
        },
        "passwordValidationRules": {
            "breachDetection": {
                "enabled": false
            },
            "maxLength": 256,
            "minLength": 8,
            "rememberPreviousPasswords": {
                "count": 3,
                "enabled": true
            },
            "requireMixedCase": true,
            "requireNonAlpha": true,
            "requireNumber": true,
            "validateOnLogin": false
        },
        "themeId": "700000-000000-00000000-000000000000",
        "userDeletePolicy": {
            "unverified": {
                "enabled": false,
                "numberOfDaysToRetain": 0
            }
        }
    }
}
</code></pre>
]]></description><link>https://fusionauth.io/community/forum/topic/2759/create-a-tenant-using-api-with-golang</link><generator>RSS for Node</generator><lastBuildDate>Wed, 20 May 2026 16:19:24 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/topic/2759.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 09 Sep 2024 13:37:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Create a Tenant using API with Golang on Thu, 12 Sep 2024 15:15:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/3210">@milton-jesus</a> awesome glad you solved it!!</p>
]]></description><link>https://fusionauth.io/community/forum/post/7513</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/7513</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Thu, 12 Sep 2024 15:15:10 GMT</pubDate></item><item><title><![CDATA[Reply to Create a Tenant using API with Golang on Tue, 10 Sep 2024 19:57:29 GMT]]></title><description><![CDATA[<p dir="auto">@Alex-Patterson Hello I am planning move to recent version, I solve this problem this morning some keys in payload were from new Fusionauth version</p>
<p dir="auto">thanks</p>
]]></description><link>https://fusionauth.io/community/forum/post/7512</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/7512</guid><dc:creator><![CDATA[milton.jesus]]></dc:creator><pubDate>Tue, 10 Sep 2024 19:57:29 GMT</pubDate></item><item><title><![CDATA[Reply to Create a Tenant using API with Golang on Mon, 09 Sep 2024 17:11:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/3210">@milton-jesus</a> is there a requirement leaving you on <code>1.15.8</code>?</p>
<p dir="auto">Have you tried with latest?</p>
<p dir="auto"><a href="https://fusionauth.io/docs/release-notes/" rel="nofollow ugc">https://fusionauth.io/docs/release-notes/</a></p>
]]></description><link>https://fusionauth.io/community/forum/post/7507</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/7507</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Mon, 09 Sep 2024 17:11:31 GMT</pubDate></item></channel></rss>