TANSS PCs icon

TANSS PCs

Handles PC operations in TANSS API

Overview

This node interacts with the TANSS API to manage PC or server records. It supports operations such as fetching a PC by its ID, updating existing PC details, creating new PC entries, and deleting PCs. This node is useful in IT asset management workflows where automated retrieval, update, creation, or removal of PC/server data from the TANSS system is required.

For example, you can use this node to:

  • Retrieve detailed information about a specific PC by its ID.
  • Update inventory or configuration details of a PC automatically after maintenance.
  • Add new PCs to the TANSS database when onboarding new hardware.
  • Remove decommissioned PCs from the system.

Properties

Name Meaning
API Token The API token used to authenticate requests to the TANSS API.
PC ID The unique identifier of the PC or server to fetch, update, or delete.

Output

The node outputs an array of JSON objects corresponding to each input item processed. Each JSON object contains the response from the TANSS API for the requested operation:

  • For Get PC by ID, the output JSON includes the full details of the specified PC.
  • For Update PC, the output JSON reflects the updated PC data returned by the API.
  • For Create PC, the output JSON contains the newly created PC's details.
  • For Delete PC, the output JSON typically confirms successful deletion or provides status information.

No binary data is produced by this node.

Dependencies

  • Requires access to the TANSS API endpoint.
  • Requires an API token credential for authenticating requests.
  • The base URL for the TANSS API is obtained from the node credentials configuration.
  • The node uses HTTP methods GET, POST, PUT, and DELETE to interact with the API.

Troubleshooting

  • No credentials returned!
    This error occurs if the node cannot retrieve the necessary API credentials. Ensure that the API token credential is properly configured in n8n.

  • No data provided for updating/creating the PC.
    When performing update or create operations, the node expects non-empty data. Provide valid PC data fields to avoid this error.

  • Failed to execute [operation]: [error message]
    Indicates an issue during the API request, such as network errors, invalid tokens, or incorrect PC IDs. Verify the API token validity, PC ID correctness, and network connectivity.

  • The operation "[operation]" is not recognized.
    This suggests an unsupported operation was selected. Use one of the defined operations: getPcById, updatePc, createPc, or deletePc.

Links and References

Discussion