GymControl icon

GymControl

Handle your GymControl instance

Actions91

Overview

This node integrates with the GymControl API to update an existing worksheet resource. It allows users to modify the details of a specific worksheet by providing its unique ID and the updated data in JSON format. This is useful for managing workout plans or training schedules stored in GymControl, enabling automation of updates without manual intervention.

Practical examples:

  • Automatically updating a workout worksheet with new exercises or changes after a coaching session.
  • Syncing external workout plan modifications into GymControl worksheets.
  • Adjusting worksheet parameters programmatically based on user progress or feedback.

Properties

Name Meaning
Show Complete Response Boolean option to return the full API response instead of just the main data output.
ID The unique identifier of the worksheet to update.
JSON The JSON object containing the updated worksheet data to be sent to the API.

Output

The node outputs a JSON object representing the updated worksheet as returned by the GymControl API. This typically includes all properties of the worksheet after the update, such as its ID, name, exercises, and other relevant fields.

If "Show Complete Response" is enabled, the node returns the entire API response, which may include additional metadata or status information beyond the worksheet data.

No binary data output is involved.

Dependencies

  • Requires an API key credential for authenticating requests to the GymControl API.
  • The node expects the base URL of the GymControl instance to be configured in the credentials.
  • Network access to the GymControl API endpoint is necessary.

Troubleshooting

  • Invalid or missing ID: If the provided worksheet ID does not exist or is incorrect, the API will likely return a 404 error. Verify the ID before running the node.
  • Malformed JSON input: The JSON property must be valid JSON matching the expected schema for a worksheet update. Invalid JSON will cause request failures.
  • Authentication errors: Ensure the API key credential is correctly set up and has sufficient permissions to update worksheets.
  • API connectivity issues: Network problems or incorrect base URL configuration can lead to request timeouts or connection errors.
  • Unexpected API responses: Enabling "Show Complete Response" can help debug by revealing full API messages.

Links and References

Discussion