Distru icon

Distru

Interact with the Distru Public API v1

Actions35

Custom Fields → Post

AI-generated

Overview

This node operation creates a new custom field in the Distru system. It is useful for users who want to add custom metadata fields to various parent objects such as products, companies, contacts, orders, or batches. For example, a user might add a custom text field to products to track additional product details or a dropdown field to orders for custom status tracking.

Use Case Examples

  1. Adding a custom text field named 'Expiration Date' to products to track product expiry.
  2. Creating a dropdown custom field named 'Order Priority' for orders to categorize order urgency.

Properties

Name Meaning
Name The name of the custom field to be created.
Parent Object The type of parent object the custom field will be associated with (e.g., product, company, contact, order, batch).
Field Type The data type of the custom field (text, date, dropdown, or checkbox).
Additional Fields Optional additional settings for the custom field such as description, whether it is filterable, and options for dropdown or checkbox types.

Output

JSON

  • json - The response data from the Distru API representing the created custom field, including its properties and identifiers.

Dependencies

  • Requires an API token credential for the Distru API to authenticate requests.

Troubleshooting

  • Error 'Distru API token is not set' indicates missing or invalid API credentials; ensure the API token is correctly configured in the node credentials.
  • Error 'Resource ID is required' will not occur in this operation as it does not require a resource ID parameter.
  • If the operation is unsupported, the node throws 'Unsupported operation' error; verify the operation name is correct.
  • Missing binary data error does not apply to this operation as it does not handle file uploads.

Discussion