Skip to content

Instantly share code, notes, and snippets.

@Tanver-Hasan
Last active November 15, 2023 00:34
Show Gist options
  • Save Tanver-Hasan/d6a5a8c798e71f8a06f080c71785dd70 to your computer and use it in GitHub Desktop.
Save Tanver-Hasan/d6a5a8c798e71f8a06f080c71785dd70 to your computer and use it in GitHub Desktop.
URL='https://tanver-custom.eu.auth0.com/api/v2/prompts/signup/partials'
TOKEN='Management API Token'
curl -X PUT \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $TOKEN" \
-d '{"signup": {"form-content-start":"<div class=\"ulp-field\">\n <label for=\"first-name\">First Name</label>\n <input type=\"text\" name=\"ulp-first-name\" id=\"first-name\">\n</div> \n <div class=\"ulp-field\">\n <label for=\"last-name\">Last Name</label>\n <input type=\"text\" name=\"ulp-last-name\" id=\"last-name\">\n </div>","form-content-end":"<div class=\"ulp-field\"> \n<label for=\"confirm-password\">Confirm Password</label> \n <input type=\"text\" name=\"ulp-confirm-password\" id=\"confirm-password\"> \n<div class=\"ulp-error-info\"> \n Confirm Password is required</div> \n</div> \n <div class=\"ulp-field\"> \n <input type=\"checkbox\" name=\"ulp-terms-of-service\" id=\"terms-of-service\">\n <label for=\"terms-of-service\">\n I want to receive marketting information <a href=\"#\">Terms of Service</a>\n</label>\n <div class=\"ulp-error-info\">\n I want to receive email marketting information.</div>\n</div>\n"}}' \
"$URL"
@Tanver-Hasan
Copy link
Author

Screenshot 2023-11-15 at 00 03 04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment