AvantGuard - NinjaOne icon

AvantGuard - NinjaOne

AvantGuard - NinjaOne

Actions159

Overview

This node enables uploading knowledge base articles to a specified system via an API. It is useful for automating the process of adding or updating articles in a knowledge base, which can help organizations maintain up-to-date documentation, FAQs, or support content without manual intervention.

Typical use cases include:

  • Automatically importing batches of knowledge base articles from external sources.
  • Updating existing articles programmatically based on changes in source data.
  • Organizing articles into folders or under specific organizational units.

For example, a support team could use this node to upload new troubleshooting guides directly from their content management system into their customer support portal's knowledge base.

Properties

Name Meaning
Additional Body Fields Optional fields to customize the upload request. Includes:
- Organization Id Numeric ID specifying the organization under which the article should be uploaded.
- Folder Id Numeric ID of the folder where the article will be stored.
- Folder Path String path representing the folder hierarchy for storing the article.
- Files JSON array describing the files (articles) to upload, including metadata like content type and disposition.

The "Files" property expects a JSON structure that defines the content and metadata of each article file to be uploaded.

Output

The node outputs JSON data representing the response from the API after attempting to upload the knowledge base articles. This typically includes information about the success or failure of the upload, IDs of created or updated articles, and any relevant metadata returned by the service.

If the node supports binary data output (not evident from the provided code), it would represent the actual content of uploaded files or related attachments.

Dependencies

  • Requires an API key credential for authenticating with the target knowledge base service.
  • The node uses a base URL configured in the credentials to send HTTP requests.
  • Depends on the @avantguardllc/n8n-openapi-node package for building properties and handling OpenAPI-based requests.
  • The node expects the user to provide properly structured JSON for the "Files" property to correctly upload articles.

Troubleshooting

  • Invalid or missing API credentials: Ensure the API key or authentication token is correctly set in the node credentials.
  • Malformed JSON in "Files": The "Files" property must be valid JSON matching the expected schema; otherwise, the API may reject the request.
  • Incorrect folder or organization IDs: Using invalid numeric IDs for organization or folder fields can cause errors; verify these values exist in the target system.
  • Network or API errors: Check connectivity and API endpoint availability if uploads fail unexpectedly.
  • Error messages from API: Typically indicate issues with authorization, validation of input data, or server-side problems. Review the error details returned in the node output for guidance.

Links and References

Discussion