{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/PasswordCredential",
  "title": "PasswordCredential",
  "type": "object",
  "description": "Represents a password credential (client secret) associated with an application or service principal",
  "properties": {
    "keyId": {
      "type": "string",
      "format": "uuid",
      "readOnly": true,
      "description": "Unique identifier for the password",
      "example": "500123"
    },
    "displayName": {
      "type": [
        "string",
        "null"
      ],
      "description": "Friendly name for the password credential",
      "example": "example_value"
    },
    "hint": {
      "type": "string",
      "readOnly": true,
      "description": "Contains the first three characters of the password (returned on read operations)",
      "example": "example_value"
    },
    "secretText": {
      "type": "string",
      "readOnly": true,
      "description": "The generated password value. Only returned at creation time and cannot be retrieved later.",
      "example": "example_value"
    },
    "startDateTime": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time at which the password becomes valid",
      "example": "2026-01-15T10:30:00Z"
    },
    "endDateTime": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time at which the password expires. Maximum lifetime varies by policy.",
      "example": "2026-01-15T10:30:00Z"
    }
  }
}