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.TestActionRequestContent{
Payload: map[string]any{
"key": "value",
},
}
client.Actions.Test(
context.TODO(),
"id",
request,
)
}{
"payload": {}
}Test an action. After updating an action, it can be tested prior to being deployed to ensure it behaves as expected.
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.TestActionRequestContent{
Payload: map[string]any{
"key": "value",
},
}
client.Actions.Test(
context.TODO(),
"id",
request,
)
}{
"payload": {}
}Documentation Index
Fetch the complete documentation index at: https://auth0-feat-docs-5492.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.
The id of the action to test.
The payload for the action.
Test action version successfully created.
The resulting payload after an action was executed.
Cette page vous a-t-elle été utile ?