GymControl icon

GymControl

Handle your GymControl instance

Actions91

Overview

This node integrates with the GymControl API to create a new Service entity within a gym management system. It allows users to define key attributes of a service such as its name, description, status, and assign a coach responsible for it. This node is useful in scenarios where gym administrators want to automate the creation and management of services offered by their facility, such as personal training sessions, group classes, or specialized programs.

Practical examples include:

  • Automatically adding new fitness classes when they are scheduled.
  • Creating personalized coaching services linked to specific trainers.
  • Managing service lifecycle by setting statuses like active, disabled, or archived.

Properties

Name Meaning
Show Complete Response Boolean flag to determine if the full API response should be returned or just essential data.
Name The name/title of the service to be created (e.g., "Yoga Class", "Personal Training").
Description A detailed textual description of the service, explaining what it entails.
Status The current state of the service; options are: Active, Disabled, Archived.
Coach The coach assigned to this service. Can be selected by ID or from a searchable list of coaches.

Output

The node outputs JSON data representing the newly created service object as returned by the GymControl API. If the "Show Complete Response" property is enabled, the entire API response is provided; otherwise, only the essential details of the created service are output. There is no binary data output.

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 POST requests to create services on the GymControl platform.

Troubleshooting

  • Authentication errors: Ensure that the API key credential is correctly set up and has sufficient permissions.
  • Validation errors: Required fields such as "Name" and "Description" must be provided; missing these will cause the API to reject the request.
  • Coach selection issues: When selecting a coach, ensure the chosen ID corresponds to a valid user with a coach or admin role.
  • API connectivity problems: Verify network access to the GymControl API endpoint and correct base URL configuration.

Links and References

  • GymControl API documentation (general reference for endpoints and data models)
  • n8n documentation on creating custom nodes and using resource locators

Discussion