{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/envestnet/json-schema/envestnet-renew-consent-request-schema.json",
  "title": "RenewConsentRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/envestnet-consents-api-openapi.yml#/components/schemas/RenewConsentRequest",
  "required": [
    "clientTrustedAdvisor"
  ],
  "type": "object",
  "properties": {
    "preferences": {
      "$ref": "#/$defs/RenewConsentPreferences"
    },
    "renewal": {
      "$ref": "#/$defs/RenewalConsent"
    },
    "clientTrustedAdvisor": {
      "type": "array",
      "description": "describes information of client trusted advisor.",
      "items": {
        "$ref": "#/$defs/ClientTrustedAdvisor"
      }
    }
  },
  "$defs": {
    "ClientTrustedAdvisor": {
      "title": "ClientTrustedAdvisor",
      "required": [
        "email",
        "name",
        "role"
      ],
      "type": "object",
      "properties": {
        "role": {
          "type": "string",
          "description": "<b>Role of the Client Trusted Advisor</b>: Example : Lawyer , Accountant , etc..."
        },
        "name": {
          "type": "string",
          "description": "Name of the client trusted advisor"
        },
        "email": {
          "type": "string",
          "description": "<b>Email Id of the Client Trusted Advisor</b>: PRIMARY , SECONDARY , PERSONAL , WORK and OTHERS"
        }
      }
    },
    "RenewConsentPreferences": {
      "title": "RenewConsentPreferences",
      "required": [
        "id",
        "value"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "description": "preference id for AU Open Banking only.<br><br><b>Endpoints</b>:<ul><li>PUT consents/{consentId}/renewal</li></ul>",
          "format": "int64"
        },
        "value": {
          "type": "string",
          "description": "preference value for AU Open Banking only.<br><br><b>Endpoints</b>:<ul><li>PUT consents/{consentId}/renewal</li></ul>"
        }
      }
    },
    "RenewalConsent": {
      "title": "RenewalConsent",
      "type": "object",
      "properties": {
        "defaultRenewalDuration": {
          "type": "string",
          "description": "Consent default renewal duration.<br><br><b>Endpoints</b>:<ul><li>PUT consents/{consentId}/renewal</li></ul>"
        },
        "isReauthorizationRequired": {
          "type": "boolean",
          "description": "Consent eligibility for reauthorization.<br><br><b>Endpoints</b>:<ul><li>PUT consents/{consentId}/renewal</li></ul>"
        }
      }
    }
  }
}