GymControl icon

GymControl

Handle your GymControl instance

Actions91

License → Create

AI-generated

Overview

This node integrates with the GymControl API to manage gym-related data. Specifically, the "License" resource with the "Create" operation allows users to create new license entries in their GymControl instance. This is useful for gym administrators who want to programmatically add licenses with specified total quantities and prices.

Practical examples include:

  • Automatically creating a new license when a new membership plan is added.
  • Bulk creation of licenses during initial setup or migration.
  • Integrating license creation into automated workflows for gym management.

Properties

Name Meaning
Show Complete Response Whether to return the full API response or just the essential data (true/false).
Total The total number of licenses to create (minimum 1).
Price The price associated with each license (minimum 0).

Output

The node outputs JSON data representing the created license(s) as returned by the GymControl API. If "Show Complete Response" is enabled, the entire API response is returned; otherwise, only the relevant license creation result is provided.

No binary data output is involved.

Dependencies

  • Requires an API key credential for authenticating with the GymControl API.
  • The base URL for the GymControl API must be configured in the credentials.
  • The node sends HTTP requests with JSON payloads to the GymControl API endpoints.

Troubleshooting

  • Authentication errors: Ensure the API key credential is valid and has sufficient permissions.
  • Validation errors: The "Total" property must be at least 1, and "Price" cannot be negative. Providing invalid values will cause the API to reject the request.
  • Network issues: Verify connectivity to the GymControl API endpoint.
  • Unexpected responses: Enable "Show Complete Response" to debug the full API response.

Links and References

Discussion