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
Device → Create
AI-generatedOverview
This node integrates with the GymControl API to manage devices associated with users in a gym management system. Specifically, the "Device - Create" operation allows you to register a new device for a specified user by providing a token that identifies the device.
Common scenarios where this node is useful include:
- Automatically registering new devices when users sign up or are assigned devices.
- Managing device tokens for push notifications or access control within a gym environment.
- Integrating device management into automated workflows for user onboarding or device provisioning.
For example, after creating a new user in the system, you can use this node to create and link a device token to that user, enabling device-specific features such as notifications or tracking.
Properties
| Name | Meaning |
|---|---|
| Show Complete Response | Boolean flag to determine if the full API response should be returned or just essential data. |
| User | The user to whom the device will be linked. Can be selected by ID or from a searchable list. |
| Token | The device token string used to identify the device (e.g., for push notifications). |
Output
The node outputs JSON data representing the response from the GymControl API after creating the device. This typically includes details about the newly created device such as its ID, associated user ID, token, and any other metadata returned by the API.
If "Show Complete Response" is enabled, the entire API response is output; otherwise, only the relevant subset of data 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 requests to communicate with the GymControl REST endpoints.
Troubleshooting
- Invalid or missing token: Ensure the device token string is correctly provided and not empty.
- User not found: Verify that the user ID exists in the GymControl system before attempting to create a device.
- Authentication errors: Confirm that the API key credential is valid and has sufficient permissions.
- API connectivity issues: Check network connectivity and the correctness of the base URL configured in credentials.
- Unexpected API responses: Enable "Show Complete Response" to debug the full response payload for troubleshooting.
Links and References
- GymControl API Documentation (hypothetical link, replace with actual if available)
- n8n Documentation on Creating Custom Nodes