Actions10
Overview
The "Take Reward Children" operation in the Dragon Family node allows users to assign a reward amount to a specific child identified by their unique ID. This operation is useful in scenarios where you want to manage or track rewards given to children within the Dragon Family system, such as rewarding achievements, milestones, or tasks completed by children.
Practical examples include:
- Automatically granting points or rewards to a child after completing an educational task.
- Managing incentive programs for children in a family or educational setting.
- Integrating with other systems to update reward balances based on external events.
Properties
Name | Meaning |
---|---|
Base URL | The base URL of the Dragon Family API endpoint (default: https://api.dragonfamily.com). |
User Token | Your API access token used for authentication; sent as a Bearer token in the header. |
Child ID | Unique identifier of the child who will receive the reward. |
Amount | The amount of the reward to be assigned to the child. |
Output
The node outputs JSON data representing the result of the reward assignment operation. The exact structure depends on the API response but typically includes confirmation of the reward transaction or updated child reward information.
No binary data output is indicated for this operation.
Dependencies
- Requires access to the Dragon Family API.
- Needs a valid API access token for authorization, which must be provided as a Bearer token in the request headers.
- The node configuration requires specifying the correct Base URL and User Token.
Troubleshooting
- Invalid or missing API token: Ensure that the User Token property is correctly set with a valid API key. Authentication failures will prevent the operation from succeeding.
- Incorrect Child ID: Providing an invalid or non-existent Child ID may result in errors or no action taken. Verify the Child ID before executing.
- Amount value issues: The Amount must be a valid number. Non-numeric or negative values might cause errors.
- Network or API endpoint issues: Confirm that the Base URL is reachable and correct. Network problems or incorrect URLs will cause request failures.
Common error messages might include unauthorized access, resource not found, or validation errors related to input parameters. Checking the API documentation and ensuring all required fields are correctly filled usually resolves these issues.
Links and References
- Dragon Family API Documentation (Assumed link for reference)
- n8n Documentation on Creating Custom Nodes