GymControl icon

GymControl

Handle your GymControl instance

Actions91

Overview

This node integrates with the GymControl API to create a new guest record in a gym management system. It is useful for automating the addition of guests, such as new visitors or trial members, into the GymControl platform. Typical scenarios include onboarding new guests from external registration forms, syncing guest data from other systems, or managing guest access periods programmatically.

For example, you can use this node to automatically add a guest when they sign up on your website, specifying their contact details and active membership period.

Properties

Name Meaning
Name The first name of the guest to be created.
Lastname The last name (surname) of the guest.
Email The guest's email address.
Phone Number The guest's phone number.
Active Start The start date and time from which the guest's status becomes active.
Active End The end date and time until which the guest remains active.
Status The current status of the guest; options are "Active" or "Disabled".
Show Complete Response A boolean setting to determine whether to output the full API response or just essential data.

Output

The node outputs JSON data representing the newly created guest object as returned by the GymControl API. This typically includes all guest details such as ID, name, contact information, active period, and status.

If the "Show Complete Response" property is enabled, the entire API response is returned, which may contain additional metadata or related information.

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 GymControl instance must be configured in the node credentials.
  • The node sends HTTP POST requests to the /guests endpoint of the GymControl API.

Troubleshooting

  • Authentication errors: Ensure that the API key credential is valid and has sufficient permissions to create guests.
  • Validation errors: Required fields such as name, lastname, email, phone number, active start/end dates, and status must be provided and correctly formatted.
  • Date format issues: The active start and end properties expect ISO 8601 date-time strings; invalid formats may cause request failures.
  • API connectivity: Verify network access to the GymControl API URL and that the service is operational.
  • Unexpected responses: Enabling "Show Complete Response" can help debug by revealing the full API response.

Links and References

Discussion