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
Relationship → Create
AI-generatedOverview
This node integrates with the GymControl system to create a new relationship between a coach and an athlete. It is useful in scenarios where you want to programmatically link coaches to athletes within your gym management workflow, such as automating onboarding processes or managing training assignments.
For example, after registering a new athlete, you can use this node to assign them to a specific coach automatically, ensuring that all relationships are tracked and managed consistently.
Properties
| Name | Meaning |
|---|---|
| Show Complete Response | When enabled, the node returns the full API response instead of just the created relationship's data. |
| Coach | The coach involved in the relationship. You can specify this either by entering the coach's ID directly or selecting from a searchable list of coaches. |
| Athlete | The athlete involved in the relationship. You can specify this either by entering the athlete's ID directly or selecting from a searchable list of athletes. |
Output
The node outputs JSON data representing the newly created relationship between the specified coach and athlete. This typically includes identifiers and any metadata returned by the GymControl API about the relationship.
If "Show Complete Response" is enabled, the output will include the entire API response payload, which may contain additional details beyond the basic relationship information.
Dependencies
- Requires an API key credential for authenticating with the GymControl API.
- The node makes HTTP requests to the GymControl instance URL provided in the credentials.
- Proper configuration of the GymControl API URL and authentication token is necessary for successful operation.
Troubleshooting
- Authentication errors: Ensure that the API key credential is valid and has sufficient permissions to create relationships.
- Invalid IDs: If specifying coach or athlete by ID, verify that the IDs exist in the GymControl system.
- Network issues: Confirm that the GymControl API URL is reachable from the n8n environment.
- Empty or incomplete responses: If the output lacks expected data, try enabling "Show Complete Response" to inspect the full API reply for clues.
Links and References
- GymControl API Documentation (hypothetical link for reference)
- n8n documentation on Resource Locators