Skip to main content
PATCH
Error

Authorizations

authorization
string
header
required
X-Workspace-ID
string
header
required

Headers

X-Workspace-ID
string
required

Path Parameters

project_id
integer
required
package_id
integer
required
id
integer
required

Body

multipart/form-data
identifier
string
name
string
category_id
integer
package_section_id
integer
description
string
unit_type
string
supplier_id
integer
quantity
number
unit_cost_price
number
cost_price
number
client_price
number
project_currency
string

ISO 4217 code of Cost Price and Client Price; blank = no currency. Locked once the row is ordered (baseline_item_currency_locked); editable when the role may edit any price field.

supplier_currency
string

ISO 4217 code of Unit Cost Price; blank = no currency. Without it, a supplier change resets it to the new supplier's currency, else the project currency. Locked and gated like project_currency.

image
file
remove_image
boolean

Response

OK

One flat, frozen row of a package's baseline. origin package rows are written once when the package is started and never change; custom rows are managed by users. Category and supplier are stored twice, as the id they were picked from (category_id, supplier_id) and as frozen text (category is the full path joined with /). A rename never changes the text; current_category / current_supplier_company_name give the live names. Within one package an id always has the same text. The section is a reference to the package's section; sections are frozen once the package leaves draft. Fields hidden from the viewer's role (field_access.baseline_fields) are left out of the object: name, description, unit_type, the supplier fields, image, the quantity fields and the price fields.

id
integer
required
package
object
required
project_id
integer
required
origin
enum<string>
required
Available options:
package,
custom
identifier
string
required
position
integer
required
category_id
integer
required

The category the row was committed with. May no longer exist.

category
string
required

The category path frozen when the row was committed (at Start the path at that time; for a custom row the name the package already held for the id, else the path at that time).

Example:

"Furniture / Seating"

current_category
string | null
required

The category's live path; differs from category after a rename. Null when the category was deleted.

Example:

"Furniture / Chairs"

package_section
object
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
project_item_id
integer | null

Source project item for package rows, null for custom rows. Informational only.

name
string | null
description
string | null
unit_type
string | null
project_currency
string | null

ISO 4217 code Cost Price and Client Price are in; null = no currency. Starts as its project's currency when the row is committed (built or added as a custom row); changing the project's currency later doesn't relabel it. Editable until the row is ordered. Visible/editable when any price field is (field access).

Example:

"USD"

supplier_currency
string | null

ISO 4217 code Unit Cost Price is in; null = no currency. Set to the supplier company's currency, else the project currency, when the row is committed and whenever its supplier changes (unless the request sends one). Purchase orders created from the baseline default to it. Editable until the row is ordered; field access like project_currency. Amounts are never converted between the two.

Example:

"EUR"

supplier_id
integer | null

The supplier company the row was committed with; null when it has no supplier. May no longer exist.

supplier_company_name
string | null

Company on the source item's supplier contact, frozen like category.

current_supplier_company_name
string | null

The company's live name; null without a supplier or when the company was deleted.

supplier_contact_name
string | null

The company's primary person (first by position when none is primary), first and last name.

supplier_contact_email
string | null
supplier_contact_phone
string | null
supplier_address
string | null

The contact's address — street, city, state, postal code and country joined with ,.

quantity
string | null

Effective quantity — the pack count when the source item is sold in packs, otherwise the plain quantity.

Example:

"24.00"

procured_quantity
string

Σ quantity of the purchase order items linked to this row on draft, open and closed purchase orders (cancelled and voided ones don't count). The ordered quantity, whatever was delivered.

Example:

"10.00"

remaining_quantity
string | null

quantity − procured_quantity, never below 0 (an order item's quantity can be raised past the baseline). Null when the row has no quantity. New purchase order items from this row get this quantity.

unit_cost_price
string | null
cost_price
string | null

Item total.

client_price
string | null

Item total.

image
object | null
created_by_id
integer | null