Mindz icon

Mindz

Interact with Mindz API

Actions116

Overview

The node provides an interface to update a subscription plan in the Mindz platform via its API. It allows users to modify various attributes of an existing subscription, such as its name, description, pricing, media assets, billing intervals, and access controls.

This node is beneficial in scenarios where subscription plans need to be dynamically managed or updated based on changing business requirements without manual intervention in the Mindz admin panel. For example, automating price adjustments, updating promotional banners, or changing access durations for subscribers.

Practical examples:

  • Automatically updating the price and description of a subscription plan during a marketing campaign.
  • Changing the launch date or adding a new video resource to a subscription plan.
  • Adjusting client limits or enabling/disabling FAQ features programmatically.

Properties

Name Meaning
Subscription Plan ID The unique identifier of the subscription plan to update (required).
Description A detailed description of the subscription plan.
Name The name/title of the subscription plan.
Short Description A brief summary or tagline for the subscription plan.
Syllabus Content outline or syllabus associated with the subscription.
Video URL or reference to a video related to the subscription.
Video ID Identifier for the video resource linked to the subscription.
Launch Date The date when the subscription plan becomes available.
Image URL or path to an image representing the subscription.
Redirect URL to redirect users after certain actions related to the subscription.
Price The cost of the subscription plan.
Password Password protection for the subscription (hidden input).
Slug URL-friendly string identifier for the subscription.
Access Days Number of days the subscription grants access.
FAQ Active Boolean flag to enable or disable FAQ section for the subscription.
FAQ Base Questions Boolean flag indicating if base FAQ questions are included.
Client Limit Count Maximum number of clients allowed under this subscription.
Client Limit With Bank Slip Boolean flag to allow client limit when payment is made via bank slip.
Members Description Description text for members under this subscription.
Original Banner URL or path to the original banner image.
Main Banner URL or path to the main banner image.
Small Banner URL or path to a smaller version of the banner image.
Vertical Card URL or path to vertical card image representation.
Horizontal Card URL or path to horizontal card image representation.
Show Gradient Boolean flag to show gradient overlay on images or UI elements.
Interval Billing interval unit. Options: Days, Weeks, Months, Years.
Frequency Billing frequency count (e.g., every 1 month, every 2 weeks).
Max Cycles Maximum number of billing cycles; 0 means unlimited.
Max Commission Cycles Maximum number of commission cycles allowed.

Output

The node outputs JSON data representing the updated subscription plan details as returned by the Mindz API. This typically includes all the updated fields reflecting the current state of the subscription after the update operation.

If the node supports binary data output (not indicated here), it would represent media files or attachments related to the subscription, but this is not evident from the provided information.

Dependencies

  • Requires an active connection to the Mindz API using an OAuth2-based API key credential configured in n8n.
  • The node depends on the Mindz platform's API endpoints for subscriptions.
  • Proper permissions on the API key to perform update operations on subscription resources are necessary.

Troubleshooting

  • Common Issues:

    • Invalid or missing Subscription Plan ID will cause the update to fail.
    • Insufficient permissions on the API key may result in authorization errors.
    • Providing invalid values for properties like dates, numbers, or URLs might cause validation errors.
    • Network connectivity issues can prevent communication with the Mindz API.
  • Error Messages:

    • "Subscription not found" — Verify the Subscription Plan ID is correct.
    • "Unauthorized" or "Forbidden" — Check API credentials and permissions.
    • "Invalid input" — Review property values for correct formats and required fields.
    • Timeout or network errors — Ensure stable internet connection and API availability.

Links and References

  • Mindz API Documentation (general reference for subscription management)
  • n8n OAuth2 Credential Setup Guide
  • Best practices for managing subscription plans in Mindz platform

(Note: Specific URLs are not provided due to lack of explicit references in the source.)

Discussion