Decogro icon

Decogro

Decogro integration for n8n

Company → Update Company

AI-generated

Overview

This node integrates with the Decogro API to update an existing company record. It allows users to specify the company ID and provide JSON data with the fields to update. This operation is useful for maintaining accurate and up-to-date company information within Decogro, such as changing the company name or other attributes.

Use Case Examples

  1. Updating the name of a company by providing the company ID and a JSON body with the new name.
  2. Modifying other company details by sending a JSON object with the relevant fields to update.

Properties

Name Meaning
ID The ID of the company to update, used to identify which company record to modify.
JSON Body The JSON data containing the fields and values to update for the specified company.

Output

JSON

  • operation - The operation performed, e.g., 'updateCompany'.
  • data - The response data returned from the Decogro API after updating the company.
  • metadata
    • method - The HTTP method used for the request, typically 'PATCH'.
    • endpoint - The API endpoint used for the update request.
    • timestamp - The timestamp when the request was made.

Dependencies

  • Decogro API with an API key credential

Troubleshooting

  • Ensure the company ID provided exists in Decogro to avoid 'not found' errors.
  • Validate the JSON body format to prevent JSON parsing errors.
  • Check API key credentials and permissions if authentication errors occur.
  • Handle network or API errors gracefully, possibly using the node's 'continue on fail' option.

Links

Discussion