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
The node integrates with the GymControl API to manage guest records within a gym management system. Specifically, the "Guest - Update" operation allows users to update details of an existing guest by specifying their unique ID and providing new values for various guest attributes.
This node is beneficial in scenarios where gym administrators or automated workflows need to keep guest information current, such as updating contact details, membership status, or active periods. For example, if a guest changes their phone number or email, this node can be used to update those fields programmatically.
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 guest to update. This is required to specify which guest record to modify. |
| Options | A collection of optional fields to update on the guest: |
| Name | Guest's first name (string). |
| Lastname | Guest's last name (string). |
| Guest's email address (string). | |
| Phone Number | Guest's phone number (string). |
| Active Start | Date/time when the guest's active period begins. |
| Active End | Date/time when the guest's active period ends. |
| Status | Guest's status with options: "Active" or "Disabled". |
Output
- The node outputs JSON data representing the updated guest record as returned by the GymControl API.
- If "Show Complete Response" is enabled, the entire API response is returned, which may include metadata or additional information beyond the guest data.
- The node does not output binary data.
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 REST API endpoints.
Troubleshooting
Common Issues:
- Invalid or missing guest ID will cause the update to fail.
- Providing invalid date formats for "Active Start" or "Active End" may result in API errors.
- Network or authentication failures due to incorrect API key or base URL configuration.
Error Messages:
- Errors from the API typically indicate issues like "Guest not found" or "Invalid input data".
- Authentication errors suggest checking the API key credential.
- To resolve, verify that the guest ID exists, input data conforms to expected formats, and credentials are correctly set.
Links and References
- GymControl API documentation (not provided here) would be the primary reference for field definitions and API behavior.
- n8n documentation on creating and using custom nodes for REST APIs.