A valid request URL is required to generate request examples{
"id": 123,
"package": {
"id": 123,
"name": "<string>"
},
"project_id": 123,
"origin": "package",
"identifier": "<string>",
"position": 123,
"category_id": 123,
"category": "Furniture / Seating",
"current_category": "Furniture / Chairs",
"package_section": {
"id": 123,
"name": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"project_item_id": 123,
"name": "<string>",
"description": "<string>",
"unit_type": "<string>",
"project_currency": "USD",
"supplier_currency": "EUR",
"supplier_id": 123,
"supplier_company_name": "<string>",
"current_supplier_company_name": "<string>",
"supplier_contact_name": "<string>",
"supplier_contact_email": "<string>",
"supplier_contact_phone": "<string>",
"supplier_address": "<string>",
"quantity": "24.00",
"procured_quantity": "10.00",
"remaining_quantity": "<string>",
"unit_cost_price": "<string>",
"cost_price": "<string>",
"client_price": "<string>",
"image": {
"id": 123,
"url": "<string>",
"name": "<string>"
},
"created_by_id": 123
}{
"error": "<string>",
"errors": [
{
"message": "<string>",
"field": "<string>",
"code": "<string>"
}
]
}{
"error": "<string>",
"errors": [
{
"message": "<string>",
"field": "<string>",
"code": "<string>"
}
]
}{
"error": "<string>",
"errors": [
{
"message": "<string>",
"field": "<string>",
"code": "<string>"
}
]
}{
"error": "<string>",
"errors": [
{
"message": "<string>",
"field": "<string>",
"code": "<string>"
}
]
}Update baseline item
Any row (custom or snapshot) of an in_progress package. Only the given fields change; remove_image: true clears the image. A row used by purchase order items keeps its section (baseline_item_section_has_purchase_order_items). Each change is logged (see history). Also accepts JSON.
A valid request URL is required to generate request examples{
"id": 123,
"package": {
"id": 123,
"name": "<string>"
},
"project_id": 123,
"origin": "package",
"identifier": "<string>",
"position": 123,
"category_id": 123,
"category": "Furniture / Seating",
"current_category": "Furniture / Chairs",
"package_section": {
"id": 123,
"name": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"project_item_id": 123,
"name": "<string>",
"description": "<string>",
"unit_type": "<string>",
"project_currency": "USD",
"supplier_currency": "EUR",
"supplier_id": 123,
"supplier_company_name": "<string>",
"current_supplier_company_name": "<string>",
"supplier_contact_name": "<string>",
"supplier_contact_email": "<string>",
"supplier_contact_phone": "<string>",
"supplier_address": "<string>",
"quantity": "24.00",
"procured_quantity": "10.00",
"remaining_quantity": "<string>",
"unit_cost_price": "<string>",
"cost_price": "<string>",
"client_price": "<string>",
"image": {
"id": 123,
"url": "<string>",
"name": "<string>"
},
"created_by_id": 123
}{
"error": "<string>",
"errors": [
{
"message": "<string>",
"field": "<string>",
"code": "<string>"
}
]
}{
"error": "<string>",
"errors": [
{
"message": "<string>",
"field": "<string>",
"code": "<string>"
}
]
}{
"error": "<string>",
"errors": [
{
"message": "<string>",
"field": "<string>",
"code": "<string>"
}
]
}{
"error": "<string>",
"errors": [
{
"message": "<string>",
"field": "<string>",
"code": "<string>"
}
]
}Body
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.
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).
"USD"
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.
"EUR"