メインコンテンツへスキップ
PATCH
https://{tenantDomain}/api/v2
/
organizations
/
{id}
/
enabled_connections
/
{connectionId}
Go
package example

import (
    context "context"

    client "github.com/auth0/go-auth0/management/management/client"
    option "github.com/auth0/go-auth0/management/management/option"
    organizations "github.com/auth0/go-auth0/management/management/organizations"
)

func do() {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    request := &organizations.UpdateOrganizationConnectionRequestContent{}
    client.Organizations.EnabledConnections.Update(
        context.TODO(),
        "id",
        "connectionId",
        request,
    )
}
{
  "assign_membership_on_login": true,
  "connection": {
    "name": "<string>",
    "strategy": "<string>"
  },
  "connection_id": "<string>",
  "is_signup_enabled": true,
  "show_as_button": true
}

承認

Authorization
string
header
必須

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

パスパラメータ

id
string
必須

組織の識別子。

Maximum string length: 50
connectionId
string
必須

接続の識別子。

Required string length: 1 - 50

ボディ

assign_membership_on_login
boolean

true の場合、この接続でログインするすべてのユーザーに、その組織のメンバーシップが自動的に付与されます。false の場合、ユーザーはこの接続でログインする前に、その組織のメンバーシップを付与されている必要があります。

is_signup_enabled
boolean

この組織の接続で組織サインアップを有効にするかどうかを決定します。データベース接続にのみ適用されます。既定値: false。

show_as_button
boolean

この組織のログインプロンプトにこの接続を表示するかどうかを決定します。エンタープライズ接続にのみ適用されます。既定値: true。

レスポンス

組織の接続が正常に更新されました。

assign_membership_on_login
boolean

true の場合、この接続でログインするすべてのユーザーに、その組織のメンバーシップが自動的に付与されます。false の場合、ユーザーはこの接続でログインする前に、その組織のメンバーシップを付与されている必要があります。

connection
object
connection_id
string

接続の id。

is_signup_enabled
boolean

この組織の接続で組織サインアップを有効にするかどうかを決定します。データベース接続にのみ適用されます。既定値: false。

show_as_button
boolean

この組織のログインプロンプトにこの接続を表示するかどうかを決定します。エンタープライズ接続にのみ適用されます。既定値: true。