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"
X-RateLimit-Limitinteger

Total number of rate limit tokens for this request within a rate limit period. For more information, see Rate limits.

Example:3600
X-RateLimit-Remaininginteger

Remaining number of rate limit tokens for this request within the rate limit period. For example, in the sandbox environment, rate limits for non-GET endpoints are set at 3000 requests per 10 minutes.

Example:3600
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": [ {} ] }