Passer au contenu principal
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,
    )
}

Autorisations

Authorization
string
header
requis

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

Paramètres de chemin

id
string
requis

id du Hook à récupérer

Corps

Mappage de paires clé-valeur où la valeur doit être une chaîne.

{key}
string

Réponse

Les secrets du Hook ont été ajoutés avec succès.