package example
import (
context "context"
management "github.com/auth0/go-auth0/management/management"
client "github.com/auth0/go-auth0/management/management/client"
option "github.com/auth0/go-auth0/management/management/option"
)
func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
request := &management.CreateOrganizationRequestContent{
Name: "name",
}
client.Organizations.Create(
context.TODO(),
request,
)
}{
"id": "<string>",
"name": "organization-1",
"display_name": "Acme Users",
"branding": {
"logo_url": "<string>",
"colors": {
"primary": "<string>",
"page_background": "<string>"
}
},
"metadata": {},
"token_quota": {
"client_credentials": {
"enforce": true,
"per_day": 1073741824,
"per_hour": 1073741824
}
},
"enabled_connections": [
{
"connection_id": "<string>",
"assign_membership_on_login": true,
"show_as_button": true,
"is_signup_enabled": true,
"connection": {
"name": "<string>",
"strategy": "<string>"
}
}
]
}Create a new Organization within your tenant. To learn more about Organization settings, behavior, and configuration options, review Create Your First Organization.
package example
import (
context "context"
management "github.com/auth0/go-auth0/management/management"
client "github.com/auth0/go-auth0/management/management/client"
option "github.com/auth0/go-auth0/management/management/option"
)
func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
request := &management.CreateOrganizationRequestContent{
Name: "name",
}
client.Organizations.Create(
context.TODO(),
request,
)
}{
"id": "<string>",
"name": "organization-1",
"display_name": "Acme Users",
"branding": {
"logo_url": "<string>",
"colors": {
"primary": "<string>",
"page_background": "<string>"
}
},
"metadata": {},
"token_quota": {
"client_credentials": {
"enforce": true,
"per_day": 1073741824,
"per_hour": 1073741824
}
},
"enabled_connections": [
{
"connection_id": "<string>",
"assign_membership_on_login": true,
"show_as_button": true,
"is_signup_enabled": true,
"connection": {
"name": "<string>",
"strategy": "<string>"
}
}
]
}Documentation Index
Fetch the complete documentation index at: https://auth0.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The name of this organization.
1 - 50Friendly name of this organization.
1 - 255Theme defines how to style the login pages.
Show child attributes
Metadata associated with the organization, in the form of an object with string values (max 255 chars). Maximum of 25 metadata properties allowed.
Show child attributes
Connections that will be enabled for this organization. See POST enabled_connections endpoint for the object format. (Max of 10 connections allowed)
Show child attributes
Show child attributes
Organization successfully created.
Organization identifier.
50The name of this organization.
1 - 50Friendly name of this organization.
1 - 255Theme defines how to style the login pages.
Show child attributes
Metadata associated with the organization, in the form of an object with string values (max 255 chars). Maximum of 25 metadata properties allowed.
Show child attributes
Show child attributes
Show child attributes
このページは役に立ちましたか?