GymControl icon

GymControl

Handle your GymControl instance

Actions91

Overview

The node integrates with the GymControl API to update user information within a gym management system. It allows modifying various user attributes such as email, name, contact details, profile picture, birthdate, status, gender, role, height, and weight. This node is useful for automating user data updates in workflows that manage gym memberships, track member profiles, or synchronize user information from other systems.

Practical examples include:

  • Automatically updating a user's contact information when they submit a form.
  • Changing a user's membership status based on payment confirmation.
  • Adjusting user roles or attributes as part of onboarding or offboarding processes.

Properties

Name Meaning
Show Complete Response Boolean flag to determine if the full API response should be returned or just the main data.
ID The unique identifier of the user to update (required).
Email User's email address.
Name User's first name.
Lastname User's last name.
Phone Number User's phone number.
Profile Picture URL or identifier for the user's profile picture.
Birthdate User's birthdate (date and time).
Status User's account status; options are "Active" or "Disabled".
Gender User's gender, selectable either by ID or from a searchable list of genders.
Role User's role, selectable either by ID or from a searchable list of roles.
Height User's height (numeric value).
Weight User's weight (numeric value).

Output

The node outputs JSON data representing the updated user object as returned by the GymControl API. If the "Show Complete Response" option is enabled, the entire API response is returned; otherwise, only the relevant user data is output.

No binary data output is involved.

Dependencies

  • Requires an API key credential for authenticating requests to the GymControl API.
  • The base URL for the API is configured via credentials.
  • The node uses HTTP requests to communicate with the GymControl REST endpoints.

Troubleshooting

  • Invalid or missing user ID: The update operation requires a valid user ID. Ensure the ID property is set and corresponds to an existing user.
  • Authentication errors: Verify that the API key credential is correctly configured and has sufficient permissions.
  • Invalid field values: Some fields like status accept only specific options ("active", "disabled"). Providing invalid values may cause API errors.
  • Network issues: Connectivity problems to the GymControl API endpoint will result in request failures.
  • Empty update payload: If no fields are provided to update, the API might reject the request or return no changes.

To resolve errors, check the node's error messages for HTTP status codes and messages, verify input parameters, and confirm API credentials.

Links and References

  • GymControl API documentation (not included in source code; consult official GymControl resources)
  • n8n documentation on creating and using custom nodes and credentials

Discussion