Passer au contenu principal
POST
/
actions
/
actions
/
{id}
/
test
TypeScript
import { ManagementClient } from "auth0";

async function main() {
    const client = new ManagementClient({
        token: "<token>",
    });
    await client.actions.test("id", {
        payload: {
            "key": "value",
        },
    });
}
main();
{
  "payload": {}
}

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

The id of the action to test.

Corps

payload
object
requis

The payload for the action.

Réponse

Test action version successfully created.

payload
object

The resulting payload after an action was executed.