Create a reset password token

Request

Creates a reset password token.

Security
SecretApiKey or JWT
Bodyapplication/jsonrequired

ResetPasswordToken resource.

usernamestringrequired

Username associated with the token.

expiredTimestring or null, (date-time)

Date and time when the password expires.

curl -i -X POST \
  https://www.rebilly.com/_mock/catalog/all/password-tokens \
  -H 'Content-Type: application/json' \
  -H 'REB-APIKEY: YOUR_API_KEY_HERE' \
  -d '{
    "username": "string",
    "expiredTime": "2019-08-24T14:15:22Z"
  }'

Responses

Reset password token created.

Headers
Locationstring, (uri)

Location of the related resource.

Example:"https://api.rebilly.com/example"
Rate-Limit-Limitinteger

Maximum number of requests available at one time for this rate limit. For more information, see Rate limits.

Example:500
Rate-Limit-Remaininginteger

Number of requests still available for this rate limit. For more information, see Rate limits.

Example:499
Bodyapplication/json
tokenstringread-only

ID of the token.

usernamestringrequired

Username associated with the token.

credentialIdstringread-only

Credential ID associated with the token.

expiredTimestring or null, (date-time)

Date and time when the password expires.

Response
{ "token": "string", "username": "string", "credentialId": "string", "expiredTime": "2019-08-24T14:15:22Z", "_links": [ { … } ] }