lineItems

Replace Project Line Items

Replace all line items for a project. Send an object with lineItems, sections, or both:

  • lineItems { lineItems: [...] } — ungrouped line items.
  • sections { sections: [{ name?, lineItems: [...] }] } — line items grouped into named sections.
  • The two may be combined (ungrouped items + named sections).

A catalogItemId may appear at most once across the flattened set.

Deprecated: the previous request shape is still accepted for backwards compatibility but is deprecated and will not be supported in a future version.

put/projects/{project_id}/line-items

Request

  • Base URL: https://api.coperniq.io/v1
  • URL: https://api.coperniq.io/v1/projects/{project_id}/line-items
  • Auth: API key in header x-api-key

Path parameters

project_idinteger required

Project identifier

Request body

Response

Updated list of line items

idinteger required

Line item identifier

quantityinteger required

Quantity of items

descriptionstring required

Line item description

unitCostnumber double required

Cost per unit

totalCostnumber double required

Total cost (unitCost * quantity)

totalPricenumber double required

Total price (unitPrice * quantity)

unitPricenumber double required

Price per unit

createdAtstring date-time required

Creation timestamp

sectionNamestring nullable

Section name; null when the item is ungrouped

Changes

No recorded changes to this operation across all 1 revision of this API.