Entity → Create
AI-generatedOverview
This node interacts with the GPortal Entity API to create a new entity. It is useful in scenarios where you need to programmatically add new entities to the GPortal system by providing the entity's name and data in JSON format. For example, it can be used to automate the creation of user profiles, product entries, or any custom data entities within GPortal.
Use Case Examples
- Creating a new user entity with specific attributes such as name, email, and role.
- Adding a new product entity with details like product name, price, and category.
Properties
| Name | Meaning |
|---|---|
| Entity Name or ID | The name or ID of the entity to create, chosen from a list or specified via expression. |
| Entity Data | The entity data in JSON format, representing the attributes and values of the new entity. |
| Additional Fields | Optional additional query parameters to customize the creation request. |
Output
JSON
json- The JSON response from the GPortal API representing the created entity's details.
Dependencies
- Requires GPortal API credentials including the domain URL and authentication token.
Troubleshooting
- Ensure the 'Entity Data' is a valid JSON object or a valid JSON string; otherwise, a parse error will occur.
- The 'Entity Name or ID' is required; missing this will cause an error.
- Check that the API credentials are correctly configured and the base URL is accessible.
- If the API returns an error, verify the query parameters and entity data for correctness.
Links
- n8n Expressions Documentation - Reference for using expressions to specify entity names or IDs.