Amazon Cognito · Schema

ChangePasswordRequest

Represents the request to change a user password.

AuthenticationAuthorizationIdentityIdentity ProviderOAuth2OIDC

Properties

Name Type Description
PreviousPassword object
ProposedPassword object
AccessToken object
View JSON Schema on GitHub

JSON Schema

cognito-idp-change-password-request-schema.json Raw ↑
{
  "type": "object",
  "properties": {
    "PreviousPassword": {
      "allOf": [
        {
          "$ref": "#/components/schemas/PasswordType"
        },
        {
          "description": "The old password."
        }
      ]
    },
    "ProposedPassword": {
      "allOf": [
        {
          "$ref": "#/components/schemas/PasswordType"
        },
        {
          "description": "The new password."
        }
      ]
    },
    "AccessToken": {
      "allOf": [
        {
          "$ref": "#/components/schemas/TokenModelType"
        },
        {
          "description": "A valid access token that Amazon Cognito issued to the user whose password you want to change."
        }
      ]
    }
  },
  "required": [
    "PreviousPassword",
    "ProposedPassword",
    "AccessToken"
  ],
  "description": "Represents the request to change a user password.",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/aws-cognito/refs/heads/main/json-schema/cognito-idp-change-password-request-schema.json",
  "title": "ChangePasswordRequest"
}