Actions35
- Adjustments Actions
- Assemblies Actions
- Batches Actions
- Companies Actions
- Contacts Actions
- Custom Fields Actions
- File Attachments Actions
- Inventory Actions
- Invoices Actions
- Locations Actions
- Orders Actions
- Packages Actions
- Payment Methods Actions
- Product POS Mappings Actions
- Products Actions
- Purchases Actions
- Strains Actions
- Test Results Actions
- Users Actions
Test Results → Upsert
AI-generatedOverview
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
- Upsert a test result by providing its ID and associated batch ID to update existing data.
- 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.