Actions28
Contracts → Update
AI-generatedOverview
This node updates an existing contract in the Dolibarr system by specifying the contract ID and the fields to update. It is useful for scenarios where contract details need to be modified, such as changing the customer reference, vendor reference, associated third party, sales representatives, contract date, or notes. For example, a user can update the sales representative following up on a contract or add private notes to a contract record.
Use Case Examples
- Updating the sales representative assigned to a contract.
- Changing the contract's associated third party by ID or URL.
- Adding or modifying public and private notes on a contract.
Properties
| Name | Meaning |
|---|---|
| Contract ID | The unique identifier of the contract to update, required to specify which contract to modify. |
| Values | A collection of contract fields that can be updated, including references to customer, vendor, third party, sales representatives, contract date, and notes. |
| Extra Fields | Additional custom attribute fields for the contract, allowing multiple values to be set dynamically. |
| Fields | Other contract fields that can be assigned or updated, allowing flexible field assignment. |
| Request Options | Settings for the request such as batching, SSL certificate validation, proxy configuration, and timeout settings. |
Output
JSON
id- The ID of the updated contract.ref_customer- Updated reference to the customer.ref_supplier- Updated reference to the vendor.socid- Updated third-party ID associated with the contract.commercial_suivi_id- ID of the sales representative following up the contract.commercial_signature_id- ID of the sales representative signing the contract.date_contrat- Updated contract date.note_public- Updated public note on the contract.note_private- Updated private note on the contract.
Dependencies
- Dolibarr API with authentication credentials
Troubleshooting
- Ensure the Contract ID is valid and exists in the Dolibarr system to avoid 'not found' errors.
- Verify that the URLs provided for third-party or user references match the expected patterns to prevent validation errors.
- Check API credentials and permissions to ensure the node can update contracts.
- If SSL issues occur, consider enabling the 'Ignore SSL Issues' option or verify the SSL certificate configuration.
Links
- Dolibarr API Documentation - Official documentation for Dolibarr API endpoints and usage.