メインコンテンツへスキップ
POST
https://{tenantDomain}/api/v2
/
hooks
/
{id}
/
secrets
Go
package example

import (
    context "context"

    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 := map[string]any{
        "key": "value",
    }
    client.Hooks.Secrets.Create(
        context.TODO(),
        "id",
        request,
    )
}

承認

Authorization
string
header
必須

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

パスパラメータ

id
string
必須

取得する Hook の id

ボディ

値が文字列である必要があるキーと値のペアのハッシュマップ。

{key}
string

レスポンス

Hook シークレットが正常に追加されました。