GymControl icon

GymControl

Handle your GymControl instance

Actions91

Overview

This node integrates with the GymControl API to create a new Addon resource. It allows users to define and add custom addons to their GymControl instance, which can extend or enhance the gym management system's functionality. Typical use cases include adding new features, services, or modules that gym administrators want to offer, such as specialized training programs, equipment rentals, or membership perks.

For example, a gym manager could use this node to create an addon named "Personal Trainer Sessions" with a description, icon, pricing details, and associate it with a specific server ID in their GymControl setup.

Properties

Name Meaning
Show Complete Response Boolean flag to determine if the full API response should be returned by the node.
Name The name of the addon to be created.
Description A detailed description of what the addon offers or entails.
Icon An icon identifier or URL representing the addon visually.
Readme Documentation or notes about the addon, typically explaining usage or features.
Version The version number of the addon, useful for tracking updates or changes.
Category The category under which the addon falls, helping organize addons logically.
Server ID Identifier of the server where the addon will be registered or associated.
Buy Price One-time purchase price for the addon (minimum 0).
Month Price Recurring monthly price for the addon subscription (minimum 0).

Output

The node outputs JSON data representing the newly created addon as returned by the GymControl API. This includes all details sent during creation plus any additional metadata or identifiers assigned by the server.

If the "Show Complete Response" property is enabled, the node returns the entire API response object, which may contain extra information beyond the addon data.

No binary data output is involved.

Dependencies

  • Requires an API key credential for authenticating requests to the GymControl API.
  • The base URL for the GymControl API must be configured in the node credentials.
  • The node sends HTTP POST requests to the GymControl API endpoint responsible for creating addons.

Troubleshooting

  • Authentication errors: Ensure the API key credential is valid and has sufficient permissions to create addons.
  • Validation errors: Required fields like Name, Description, Icon, Readme, Version, Category, Server ID, Buy Price, and Month Price must be provided and meet expected formats (e.g., prices ≥ 0).
  • Network issues: Verify connectivity to the GymControl API endpoint and correct base URL configuration.
  • API errors: If the API returns errors, check the message for missing or invalid parameters and adjust input accordingly.

Links and References

  • GymControl official API documentation (not provided here; consult your GymControl service provider)
  • n8n documentation on creating custom nodes and using HTTP request credentials

Discussion