Dolibarr icon

Dolibarr

Interact with Dolibarr API

Contracts → Delete Line

AI-generated

Overview

This node operation deletes a specific line item from a contract in the Dolibarr system. It is useful for managing contract details by removing unwanted or obsolete line entries. For example, if a contract includes multiple service lines and one needs to be removed, this operation facilitates that action by specifying the contract ID and the line ID to delete.

Use Case Examples

  1. Deleting a service line from a contract to update contract details.
  2. Removing an obsolete product line from a contract before finalizing it.

Properties

Name Meaning
Contract ID The unique identifier of the contract from which a line will be deleted. This is a required numeric input with a minimum value of 1.
Line ID The unique identifier of the line within the contract to be deleted. This is a required numeric input with a minimum value of 1. It is used in the request URL to specify which line to delete.
Request Options Additional settings for the HTTP request such as batching, SSL certificate validation, proxy configuration, and timeout settings.

Output

JSON

  • response
    • statusCode - HTTP status code of the delete operation response.
    • body - Body of the response from the Dolibarr API after attempting to delete the contract line.

Dependencies

  • Dolibarr API with valid credentials

Troubleshooting

  • Ensure that the Contract ID and Line ID are valid and exist in the Dolibarr system to avoid 404 errors.
  • Check network connectivity and proxy settings if requests fail to reach the Dolibarr API.
  • If SSL certificate validation fails, consider enabling the 'Ignore SSL Issues' option, but be aware of security risks.
  • Timeout errors can occur if the server is slow to respond; adjust the timeout setting accordingly.

Discussion