{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/salesforce-commerce-cloud/json-schema/salesforce-commerce-cloud-password-action-template-schema.json",
  "title": "PasswordActionTemplate",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/salesforce-commerce-cloud-auth-admin-api-openapi.yml#/components/schemas/PasswordActionTemplate",
  "required": [
    "actionType",
    "channelId",
    "link",
    "locale",
    "name",
    "subject",
    "template",
    "templateType"
  ],
  "type": "object",
  "properties": {
    "channelId": {
      "maxLength": 36,
      "type": "string"
    },
    "name": {
      "maxLength": 128,
      "type": "string"
    },
    "subject": {
      "maxLength": 128,
      "type": "string"
    },
    "link": {
      "maxLength": 2048,
      "type": "string"
    },
    "locale": {
      "maxLength": 16,
      "type": "string",
      "description": "Identifies the locale of the template. Must be one of the [language tag strings supported by JDK 11](https://www.oracle.com/java/technologies/javase/jdk11-suported-locales.html). The string is stored in all lowercase."
    },
    "actionType": {
      "$ref": "#/$defs/PasswordTemplateActionType"
    },
    "templateType": {
      "$ref": "#/$defs/PasswordTemplateType"
    },
    "template": {
      "maxLength": 2048,
      "type": "string"
    }
  },
  "$defs": {
    "PasswordTemplateActionType": {
      "type": "string",
      "description": "Describes the type of action that the password action template will be used for. \nHere are the actions that each enumerated string refers to:\n  - `PWDLESS_LOGIN`: Passwordless login\n  - `PWD_RESET_ACTION`: Password reset\n  - `PWD_RESET_CROSS_DEVICE_ACTION`: Password reset for cross-device flow\n  - `WEBAUTHN_AUTHORIZE_USER`: WebAuthn authorize user",
      "enum": [
        "PWDLESS_LOGIN",
        "PWD_RESET_ACTION",
        "PWD_RESET_CROSS_DEVICE_ACTION",
        "WEBAUTHN_AUTHORIZE_USER"
      ]
    },
    "PasswordTemplateType": {
      "type": "string",
      "description": "Identifies the type of mode that the password action template will be used for.",
      "enum": [
        "SMS",
        "EMAIL"
      ]
    }
  }
}