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.UpdateHookRequestContent{}
client.Hooks.Update(
context.TODO(),
"id",
request,
)
}{
"triggerId": "<string>",
"id": "00001",
"name": "hook",
"enabled": true,
"script": "module.exports = function(client, scope, audience, context, cb) cb(null, access_token); };",
"dependencies": {}
}Update an existing hook.
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.UpdateHookRequestContent{}
client.Hooks.Update(
context.TODO(),
"id",
request,
)
}{
"triggerId": "<string>",
"id": "00001",
"name": "hook",
"enabled": true,
"script": "module.exports = function(client, scope, audience, context, cb) cb(null, access_token); };",
"dependencies": {}
}Documentation Index
Fetch the complete documentation index at: https://auth0-feat-testing-docs.mintlify.app/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.
ID of the hook to update.
Name of this hook.
^[a-zA-Z0-9]([ \-a-zA-Z0-9]*[a-zA-Z0-9])?$Code to be executed when this hook runs.
1Whether this hook will be executed (true) or ignored (false).
Dependencies of this hook used by webtask server.
Show child attributes
Hook successfully created.
Trigger ID
ID of this hook.
Name of this hook.
Whether this hook will be executed (true) or ignored (false).
Code to be executed when this hook runs.
Dependencies of this hook used by webtask server.
Show child attributes
このページは役に立ちましたか?