Actions91
- Account Setting Actions
- Addon Actions
- Ceiling Actions
- Company Info Actions
- Device Actions
- Exercise Actions
- Feedback Actions
- File Actions
- File Type Actions
- Gender Actions
- Guest Actions
- License Actions
- Log Actions
- Payment Actions
- Permission Actions
- Relationship Actions
- Role Actions
- Service Actions
- Service Price Actions
- Social Actions
- Topic Actions
- User Actions
- Workout Execution Actions
- Worksheet Actions
Exercise → Update
AI-generatedOverview
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
- GymControl API Documentation (hypothetical link)
- n8n HTTP Request Node documentation for understanding API calls: https://docs.n8n.io/nodes/n8n-nodes-base.httpRequest/