GymControl icon

GymControl

Handle your GymControl instance

Actions91

Exercise → Update

AI-generated

Overview

The node integrates with the GymControl API to update an existing exercise entity. It allows users to modify properties of a specific exercise by providing its unique ID and new values for fields such as name and image. This operation is useful in scenarios where gym administrators or trainers want to keep their exercise database up-to-date, for example, correcting exercise names or updating exercise images to reflect new techniques or branding.

Practical examples:

  • Renaming an exercise to match updated terminology.
  • Changing the image associated with an exercise to a more illustrative photo.
  • Correcting typos or adding missing information to an exercise entry.

Properties

Name Meaning
Show Complete Response Boolean flag to determine if the full API response should be returned by the node.
ID The unique identifier of the exercise to update.
Options Collection of fields to update on the exercise:
- Name New name for the exercise (string).
- Image New image URL or path for the exercise (string).

Output

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

No binary data output is indicated in the source code.

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 service endpoints.

Troubleshooting

  • Missing or invalid ID: The node requires a valid exercise ID to perform the update. Ensure the ID is correct and corresponds to an existing exercise.
  • Authentication errors: If the API key or base URL is incorrect or expired, authentication will fail. Verify credentials are properly set.
  • Invalid field values: Providing empty or malformed values for name or image may cause the API to reject the update. Validate inputs before running the node.
  • API connectivity issues: Network problems or incorrect API URLs can cause request failures. Check network access and endpoint correctness.
  • Unexpected API responses: If the API changes or returns errors, enabling "Show Complete Response" can help diagnose issues by revealing full response details.

Links and References

Discussion