Skip to content

Conversation

tanya732
Copy link
Contributor

Changes

Updated below endpoint -

Path HTTP Method Method Name
/guardian/enrollments/ticket POST createEnrollmentTicket

Added a new field email_locale

References

https://auth0.com/docs/api/management/v2/guardian/post-ticket

Manual Testing Code

Securely store your Client ID, Client Secret, and Management API token.
Install the SDK: npm install auth0

var auth0 = new ManagementClient({
domain: '{YOUR_TENANT_AND REGION}.auth0.com',
clientId: '{YOUR_CLIENT_ID}',
clientSecret: '{YOUR_CLIENT_SECRET}',
});

//Create MFA Enrollment Ticket
const createEnrollment = await auth0.guardian.createEnrollmentTicket({user_id: "<USER_ID>", send_mail: true ,email_locale: "<LOCALE>"})

Testing

Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this library has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.

  • This change adds unit test coverage
  • This change adds integration test coverage

Checklist

@tanya732 tanya732 requested a review from a team as a code owner June 26, 2025 05:20
@tanya732 tanya732 merged commit b9008ef into master Jun 26, 2025
8 checks passed
@tanya732 tanya732 deleted the sdk-6120-create-mfa-enrollment-ticket-support branch June 26, 2025 05:28
@tanya732 tanya732 mentioned this pull request Jun 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants