GymControl icon

GymControl

Handle your GymControl instance

Actions91

Overview

The node integrates with the GymControl API to update existing service records within a gym management system. It allows users to modify details of a specific service by providing its unique identifier and new attribute values. This is useful for maintaining up-to-date information about services offered, such as changing the name, description, status, or assigned coach.

Practical examples include:

  • Updating the description of a personal training service.
  • Changing the status of a service from "active" to "archived".
  • Assigning a different coach to a service after staff changes.

Properties

Name Meaning
Show Complete Response Boolean flag to determine if the full API response should be returned or just essential data.
ID The unique identifier of the service to update (required).
Options A collection of optional fields to update on the service:
- Name New name for the service (string).
- Description New detailed description of the service (multi-line string).
- Status Current status of the service; options are: Active, Disabled, Archived.
- Coach The coach assigned to the service; can be selected by ID or from a searchable list of coaches.

Output

The node outputs JSON data representing the updated service object as returned by the GymControl API. If "Show Complete Response" is enabled, the entire API response is provided; otherwise, only the relevant updated service 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 backend.

Troubleshooting

  • Invalid or missing ID: The update operation requires a valid service ID. Ensure the ID corresponds to an existing service.
  • Authentication errors: Verify that the API key credential is correctly set and has sufficient permissions.
  • Invalid field values: For example, setting an unsupported status value will cause errors. Use only the allowed status options.
  • Coach assignment issues: When assigning a coach, ensure the coach ID exists and corresponds to a user with the role "coach" or "admin".
  • API connectivity problems: Check network access and the correctness of the base URL in credentials.

Common error messages typically relate to authorization failures, resource not found, or validation errors on input fields. Resolving these involves verifying credentials, IDs, and input data formats.

Links and References

  • GymControl API Documentation (example placeholder link)
  • n8n HTTP Request Node documentation for understanding request handling
  • General n8n credential setup guides for API authentication

Discussion