Distru icon

Distru

Interact with the Distru Public API v1

Actions35

Test Results → Upsert

AI-generated

Overview

This node interacts with the Distru API to upsert (create or update) test results. It is useful in scenarios where you need to programmatically manage test result data within the Distru platform, such as adding new test results or updating existing ones based on their ID. For example, a lab automation workflow could use this node to send test results directly to Distru after processing samples.

Use Case Examples

  1. Upsert a test result by providing its ID and associated batch ID to update existing data.
  2. Create a new test result by providing relevant fields like lab name and batch ID without specifying an ID.

Properties

Name Meaning
Additional Fields Test result fields to be sent to the API, including optional fields like ID (for update), Batch ID, and Lab Name.

Output

JSON

  • json - The response data from the Distru API after upserting the test result, which may include the created or updated test result details or a success confirmation.

Dependencies

  • Distru API with an API token credential

Troubleshooting

  • Ensure the Distru API token is set correctly; otherwise, the node will throw an error indicating the token is missing.
  • If the operation requires a resource ID (pathId) and it is not provided, the node will throw an error stating the resource ID is required.
  • When using binary data uploads (not applicable for this operation), ensure the binary property name is correct and the binary data exists.

Discussion