Actions10
Overview
The node integrates with the Dragon Family API to create a new "target" for a child profile within the Member resource. A target represents a goal or milestone associated with a child, such as saving a certain amount of money or achieving a specific task. This operation is useful in scenarios where parents or guardians want to set financial or behavioral goals for their children and track progress through the Dragon Family platform.
Practical examples:
- Setting a savings goal (target) for a child to encourage financial responsibility.
- Creating a custom target based on predefined templates to motivate children.
- Automating the creation of targets when onboarding new child profiles.
Properties
Name | Meaning |
---|---|
Base URL | The base URL for the Dragon Family API. Default is https://api.dragonfamily.com . |
User Token | Your API access token used for authentication; sent as a Bearer token in the Authorization header. |
Target Name | The name of the target to be created. |
Child ID | The unique identifier of the child profile for whom the target is being created. |
Price | The monetary amount or price associated with the target. |
Target Template ID | The identifier of the target template to use as a basis for creating the target. |
Output
The node outputs JSON data representing the newly created target object returned by the Dragon Family API. This typically includes details such as the target's ID, name, associated child ID, price, template ID, status, and any other metadata provided by the API.
If the API supports binary data output (not indicated here), it would be summarized accordingly, but this node primarily deals with JSON responses.
Dependencies
- Requires access to the Dragon Family API endpoint.
- Needs a valid API access token for authentication, passed as a Bearer token in the HTTP Authorization header.
- The node expects the base URL of the API, which defaults to
https://api.dragonfamily.com
but can be customized.
Troubleshooting
- Invalid or missing API token: If the token is incorrect or not provided, the API will reject requests with an authentication error. Ensure the token is valid and correctly entered.
- Incorrect Child ID or Target Template ID: Providing invalid IDs may result in errors or failure to create the target. Verify these IDs exist in the Dragon Family system.
- Network issues or wrong Base URL: If the base URL is changed incorrectly or network connectivity is lost, the node will fail to reach the API. Confirm the base URL and network status.
- Missing required properties: The node requires
Target Name
,Child ID
,Price
, andTarget Template ID
. Omitting any of these will cause validation errors before the request is sent.
Links and References
- Dragon Family API Documentation (Assumed URL for reference)
- n8n Documentation on Creating Custom Nodes