Skip to main content
PATCH
/
hooks
/
{id}
/
secrets
TypeScript
import { ManagementClient } from "auth0";

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

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

ID of the hook whose secrets to update.

Pattern: ^[A-Za-z0-9-]*$

Body

Hashmap of key-value pairs where the value must be a string.

{key}
string

Response

Hook secrets successfully updated.