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
Overview
This node integrates with the GymControl API to manage worksheets within a gym management system. Specifically, the "Delete" operation for the "Worksheet" resource allows users to remove a worksheet by its unique identifier. This is useful in scenarios where outdated or incorrect workout plans need to be removed from the system to maintain data accuracy and relevance.
Practical examples include:
- Automatically deleting a worksheet when a client cancels their membership.
- Cleaning up test or temporary worksheets created during setup or training.
- Removing obsolete workout plans that are no longer applicable.
Properties
| Name | Meaning |
|---|---|
| Show Complete Response | Boolean option to return the full API response instead of just the essential output data. |
| ID | The unique identifier of the worksheet to delete. This is required to specify which worksheet to remove. |
Output
The node outputs JSON data representing the response from the GymControl API after attempting to delete the specified worksheet. If "Show Complete Response" is enabled, the entire API response is returned; otherwise, only relevant confirmation or status information is provided.
No binary data output is involved in this operation.
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 DELETE requests to the endpoint
/worksheet/{id}where{id}is the worksheet identifier.
Troubleshooting
Common Issues:
- Providing an invalid or non-existent worksheet ID will likely result in an error from the API indicating the resource was not found.
- Missing or incorrect API authentication credentials will cause authorization errors.
- Network connectivity issues can prevent successful communication with the GymControl API.
Error Messages:
- 404 Not Found: The worksheet ID does not exist. Verify the ID is correct.
- 401 Unauthorized: Authentication failed. Check that the API key credential is valid and properly configured.
- 400 Bad Request: The request parameters may be malformed. Ensure the ID is correctly formatted.
Resolving these typically involves verifying input parameters, checking API credentials, and ensuring network access to the GymControl service.
Links and References
- GymControl API Documentation (hypothetical link)
- n8n HTTP Request Node documentation for understanding API interactions: https://docs.n8n.io/nodes/n8n-nodes-base.httpRequest/