Update Extracted Line
PATCH /extractions/{extractionId}/lines/{lineId}
/extractions/{extractionId}/lines/{lineId}Edits a line's description, quantity, count, unit, prices and group (omitted count and unit are kept), and can change its routing and match in the same call: kind (Resource or Expense), matchState (Confirmed, Overridden, Unmatched or ToCreate) with the need and proposed resource type and variant, and rateCardDecision (Accept or Decline). Omitted kind, matchState and rateCardDecision are left unchanged, and nothing is written to a rate card until commit. Setting kind Expense clears the line's resource match, so send it without a need or match in the same call. The system-added balance line (the unexplained residual) cannot be changed. Only while the extraction is Ready, Flagged or NoLineItems. Needs Order.Edit on its order (Expense.Edit at the event for an expense extraction).
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| extractionId | uuid | Required | |
| lineId | uuid | Required |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| description | string | Optional | |
| quantity | number | Optional | |
| unitPrice | number | Optional | |
| lineTotal | number | Optional | |
| count | number | Optional | |
| unit | string | Optional | |
| extractedFinancialLineGroupId | uuid | Optional | |
| procurementResourceId | uuid | Optional | |
| resourceTypeId | uuid | Optional | |
| resourceVariantId | uuid | Optional | |
| matchState | string | Optional | |
| rateCardDecision | string | Optional | |
| kind | string | Optional |