June
03/14/2025, 1:23 PMCeligo AI
03/14/2025, 1:23 PMAI generated answer (using internal Slack threads):To remove a line item on a purchase order via REST API, you would need to use the PATCH method. The PATCH method allows you to update only certain parts of a record, in this case, the line item on a purchase order. Here is a general example of how you might structure your PATCH request:
json
{
"sublists": {
"item": {
"operation": "remove",
"line": 1
}
}
}
In this example, "operation": "remove"
is used to specify that you want to remove a line item, and "line": 1
specifies the line number of the item you want to remove.
Please note that the line number starts from 1 and not 0. Also, you cannot remove a line that has been partially or fully received. If you try to do so, you will receive an error.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
03/14/2025, 1:23 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.82705611
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.825549066
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.812213898
Celigo AI
03/14/2025, 1:23 PM