A valid request URL is required to generate request examples[
{
"id": 123,
"project_id": 123,
"purchase_order": {
"id": 123,
"label": "<string>",
"status": "<string>"
},
"package_id": 123,
"package_section_id": 123,
"match_type": "two_way",
"category_id": 123,
"quantity": "1000.00",
"unit_price": "10.00",
"received_quantity": "<string>",
"accepted_quantity": "<string>",
"matched_quantity": "<string>",
"invoiced_quantity": "<string>",
"baseline_item": {
"id": 123,
"identifier": "<string>",
"name": "<string>",
"package_id": 123
},
"description": "<string>",
"category": "<string>",
"unit_type": "<string>",
"price_variance_percent": "2.0000",
"quantity_variance_percent": "0.0000",
"amount_variance_absolute": "50.00",
"position": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]{
"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>"
}
]
}Add purchase order items
Adds one item per selected baseline row (of any package of the workspace; each item takes its row’s package, section, project and category), or a single manual item (package_section_id required: a section of an in-progress / finished package of any project of the workspace; the item takes its package and project; optional category_id, named after that package’s committed rows, else the current path). One order can hold items of several projects. Returns the created items (position descending). On an issued PO this writes a new revision.
A valid request URL is required to generate request examples[
{
"id": 123,
"project_id": 123,
"purchase_order": {
"id": 123,
"label": "<string>",
"status": "<string>"
},
"package_id": 123,
"package_section_id": 123,
"match_type": "two_way",
"category_id": 123,
"quantity": "1000.00",
"unit_price": "10.00",
"received_quantity": "<string>",
"accepted_quantity": "<string>",
"matched_quantity": "<string>",
"invoiced_quantity": "<string>",
"baseline_item": {
"id": 123,
"identifier": "<string>",
"name": "<string>",
"package_id": 123
},
"description": "<string>",
"category": "<string>",
"unit_type": "<string>",
"price_variance_percent": "2.0000",
"quantity_variance_percent": "0.0000",
"amount_variance_absolute": "50.00",
"position": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]{
"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
Either the baseline filter (one item per matching baseline row — of one package with package_id, or across projects without it; description, unit, category and unit price come from the row, quantity is the row's remaining quantity — adjust single items afterwards with PATCH; each item belongs to its row's package, section and project) or a single manual item (package_section_id, description, quantity, unit_price required, no filter). One order can hold items of several projects. Match type and tolerances apply to every created item.
A baselined (in progress / finished) package of the workspace whose rows are selected; any project's package, not only the projects already on the order. Omit to select across projects with filter alone — the baselined packages of the active projects you're a member of, as the cross-project Committed grid lists them.
Manual items only (required) — a section of an in-progress / finished package of any project of the workspace. The item takes the section's package and project. Sending it (without filter) marks the request as a manual item; package_id may be sent along and must then be the section's package.
Response
Created