Skip to main content
Version: 5.7.0

SysSendPasswordResetEmailAdvancedWithExpiry

Triggers the sending of a password reset email to the specified user - but allows the dev to override the email template that will be used. Note that the user must have an email identity attached to their profile.

Example serviceParams (for Sendgrid dynamic templates):

{
"templateId": "template-id-guid",
"dynamicData": {
"aKey": "aValue"
},
"categories": [
"category1",
"category2"
]
}
ServiceOperation
userSYS_SEND_PASSWORD_RESET_EMAIL_ADVANCED_WITH_EXPIRY

Method Parameters

ParameterDescription
profileIdThe profileId of the user to send the password reset email to
tokenTtlInMinutesThe time-to-live for the password reset url, in minutes
serviceParamsThe service-specific email paramaters

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"status": 200,
"data": null
}