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 update the price of a specific service. It allows users to modify the pricing information for a service identified by its unique ID. This is useful in scenarios where gym administrators or managers need to adjust service prices dynamically, such as promotional discounts, price increases, or corrections.
Practical examples:
- Updating the monthly membership fee for a particular service.
- Changing the price of personal training sessions.
- Adjusting prices based on seasonal offers or new packages.
Properties
| Name | Meaning |
|---|---|
| Show Complete Response | Whether to return the full API response or just the essential data (true/false). |
| ID | The unique identifier of the service price entry to update. |
| Options → Price | The new price value to set for the specified service price. Must be a non-negative number. |
Output
The node outputs JSON data representing the updated service price object returned from the GymControl API after the update operation. If "Show Complete Response" is enabled, the entire API response is returned; otherwise, only the relevant updated data is provided.
No binary data output is involved.
Dependencies
- Requires an API key credential for authenticating requests to the GymControl API.
- The base URL and authentication token must be configured in the node credentials.
- The node sends HTTP PUT requests to the GymControl API endpoint corresponding to service prices.
Troubleshooting
- Missing or invalid ID: The node requires a valid service price ID to perform the update. Ensure the ID is correct and exists in the GymControl system.
- Invalid price value: The price must be a non-negative number. Negative values or invalid types will cause errors.
- Authentication errors: Verify that the API key credential is correctly configured and has sufficient permissions.
- API connectivity issues: Network problems or incorrect base URL settings can prevent successful communication with the GymControl API.
- Unexpected API responses: Enabling "Show Complete Response" can help debug by providing full details from the API.
Links and References
- GymControl API Documentation (Assumed link, replace with actual if available)
- n8n Documentation on Creating Custom Nodes