GymControl icon

GymControl

Handle your GymControl instance

Actions91

Overview

This node integrates with the GymControl system to manage account settings. Specifically, the "Account Setting" resource with the "Create" operation allows users to create or update configuration settings related to a gym account. This includes security options, license details, data retention policies, and other administrative preferences.

Typical use cases include automating the setup of new gym accounts, updating security configurations like two-factor authentication, managing license counts and pricing, and setting operational parameters such as maintenance mode or data export permissions.

For example, a gym administrator could use this node to programmatically enable two-factor authentication, set limits on password reset attempts, and specify how long user data should be retained, all within an automated workflow.

Properties

Name Meaning
Show Complete Response Whether to return the full API response or just the main data
Allow Offline Enable or disable offline access for the account
Two Factor Enabled Enable or disable two-factor authentication
Enable Data Export Allow or disallow exporting of account data
Maintenance Mode Toggle maintenance mode status for the account
Max Failed Password Reset Request Per Day Maximum number of failed password reset requests allowed per day (1 to 10)
Data Retention Days Number of days to retain data (0 to 100)
Failed Before Block Number of failed login attempts before blocking the account (-1 to 30)
Licenses: Total Total number of licenses assigned to the account (minimum 0)
Licenses: Price Price per license (minimum 0)
Currency Currency code used for license pricing
Account Notes Free text notes related to the account
Client ID Identifier for the client associated with the account

Output

The node outputs JSON data representing the created or updated account settings as returned by the GymControl API. If the "Show Complete Response" property is enabled, the entire API response is returned; otherwise, only the relevant data portion is output.

No binary data output is involved in this operation.

Dependencies

  • Requires an API key credential for authenticating with the GymControl API.
  • The base URL for the GymControl instance must be configured in the node 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: Input properties such as numeric limits (e.g., max failed password resets, data retention days) must respect their defined ranges.
  • API connectivity issues: Verify network access to the GymControl API URL and that the service is operational.
  • Unexpected responses: Enabling "Show Complete Response" can help debug by revealing full API replies.

Links and References

  • GymControl API documentation (not provided here, but typically available from the GymControl vendor)
  • n8n HTTP Request node documentation for understanding request/response handling

Discussion