GymControl icon

GymControl

Handle your GymControl instance

Actions91

Overview

This node integrates with the GymControl system to update account settings. It allows users to modify various configuration options related to an account, such as enabling two-factor authentication, setting data retention periods, toggling maintenance mode, and more. This node is useful for automating administrative tasks in a gym management environment, ensuring that account preferences are kept up-to-date without manual intervention.

Practical examples include:

  • Automatically enabling two-factor authentication for enhanced security.
  • Adjusting data retention policies based on compliance requirements.
  • Activating maintenance mode during system upgrades or downtime.

Properties

Name Meaning
Show Complete Response Whether to return the full API response or just the main data output (true/false).
ID The unique identifier of the account setting to update (string, required).
Options A collection of configurable account settings:
  Allow Offline Enable or disable offline access (boolean).
  Two Factor Enabled Enable or disable two-factor authentication (boolean).
  Enable Data Export Allow or disallow data export functionality (boolean).
  Maintenance Mode Turn maintenance mode on or off (boolean).
  Max Failed Password Reset Request Per Day Maximum allowed failed password reset attempts per day (number between 1 and 10).
  Data Retention Days Number of days to retain data (number between 0 and 100).
  Failed Before Block Number of failed attempts before blocking (-1 to 30).
  Currency Currency code used for the account (string).
  Account Notes Additional notes related to the account (multi-line string).

Output

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

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 instance must be configured in the node credentials.
  • The node sends HTTP PUT requests to update account settings at the endpoint /settings/account_settings/{id}.

Troubleshooting

  • Invalid ID: If the provided account setting ID does not exist, the API will likely return a 404 error. Verify the ID is correct.
  • Authentication Errors: Missing or invalid API key will cause authorization failures. Ensure the API key credential is correctly set.
  • Validation Errors: Providing out-of-range values (e.g., negative numbers where not allowed) may result in API validation errors. Check property constraints.
  • Network Issues: Connectivity problems to the GymControl server will cause request failures. Confirm network access and base URL correctness.

Links and References

Discussion