Actions35
- Order Actions
- Contact Actions
- Company Actions
- Files Actions
- Admin Actions
Company → Update Company
AI-generatedOverview
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
- Updating the name of a company by providing the company ID and a JSON body with the new name.
- 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.metadatamethod- 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
- Decogro API - Update Company - Official Decogro API documentation for updating a company record.