POST part/batch
Batch upsert parts and prices.
Request Information
URI
https://ofd-api.blueprintcpq.net/part/batch
URI Parameters
None.
Body Parameters
The batch part upsert.
Collection of BatchPartUpsert| Name | Description | Type | Additional information |
|---|---|---|---|
| PartNumber | string |
None. |
|
| Name | string |
None. |
|
| Description | string |
None. |
|
| IsActive | boolean |
None. |
|
| Prices | Collection of PriceUpdate |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"PartNumber": "sample string 1",
"Name": "sample string 2",
"Description": "sample string 3",
"IsActive": true,
"Prices": [
{
"Price": 1.0,
"Cost": 2.0,
"Overhead": 3.0,
"PriceBand": "cb381c0e-44b2-427e-b5b9-7ae7e1a49cfe",
"Currency": "53ad8b55-2b6f-499d-8f2c-33f9b34624cc",
"StartDate": "2026-07-15T18:36:21.1375786Z",
"EndDate": "2026-07-15T18:36:21.1375786Z"
},
{
"Price": 1.0,
"Cost": 2.0,
"Overhead": 3.0,
"PriceBand": "cb381c0e-44b2-427e-b5b9-7ae7e1a49cfe",
"Currency": "53ad8b55-2b6f-499d-8f2c-33f9b34624cc",
"StartDate": "2026-07-15T18:36:21.1375786Z",
"EndDate": "2026-07-15T18:36:21.1375786Z"
}
]
},
{
"PartNumber": "sample string 1",
"Name": "sample string 2",
"Description": "sample string 3",
"IsActive": true,
"Prices": [
{
"Price": 1.0,
"Cost": 2.0,
"Overhead": 3.0,
"PriceBand": "cb381c0e-44b2-427e-b5b9-7ae7e1a49cfe",
"Currency": "53ad8b55-2b6f-499d-8f2c-33f9b34624cc",
"StartDate": "2026-07-15T18:36:21.1375786Z",
"EndDate": "2026-07-15T18:36:21.1375786Z"
},
{
"Price": 1.0,
"Cost": 2.0,
"Overhead": 3.0,
"PriceBand": "cb381c0e-44b2-427e-b5b9-7ae7e1a49cfe",
"Currency": "53ad8b55-2b6f-499d-8f2c-33f9b34624cc",
"StartDate": "2026-07-15T18:36:21.1375786Z",
"EndDate": "2026-07-15T18:36:21.1375786Z"
}
]
}
]
text/html
Sample:
[{"PartNumber":"sample string 1","Name":"sample string 2","Description":"sample string 3","IsActive":true,"Prices":[{"Price":1.0,"Cost":2.0,"Overhead":3.0,"PriceBand":"cb381c0e-44b2-427e-b5b9-7ae7e1a49cfe","Currency":"53ad8b55-2b6f-499d-8f2c-33f9b34624cc","StartDate":"2026-07-15T18:36:21.1375786Z","EndDate":"2026-07-15T18:36:21.1375786Z"},{"Price":1.0,"Cost":2.0,"Overhead":3.0,"PriceBand":"cb381c0e-44b2-427e-b5b9-7ae7e1a49cfe","Currency":"53ad8b55-2b6f-499d-8f2c-33f9b34624cc","StartDate":"2026-07-15T18:36:21.1375786Z","EndDate":"2026-07-15T18:36:21.1375786Z"}]},{"PartNumber":"sample string 1","Name":"sample string 2","Description":"sample string 3","IsActive":true,"Prices":[{"Price":1.0,"Cost":2.0,"Overhead":3.0,"PriceBand":"cb381c0e-44b2-427e-b5b9-7ae7e1a49cfe","Currency":"53ad8b55-2b6f-499d-8f2c-33f9b34624cc","StartDate":"2026-07-15T18:36:21.1375786Z","EndDate":"2026-07-15T18:36:21.1375786Z"},{"Price":1.0,"Cost":2.0,"Overhead":3.0,"PriceBand":"cb381c0e-44b2-427e-b5b9-7ae7e1a49cfe","Currency":"53ad8b55-2b6f-499d-8f2c-33f9b34624cc","StartDate":"2026-07-15T18:36:21.1375786Z","EndDate":"2026-07-15T18:36:21.1375786Z"}]}]
application/xml, text/xml
Sample:
<ArrayOfBatchPartUpsert xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Shared.Models.DataModels">
<BatchPartUpsert>
<Description>sample string 3</Description>
<IsActive>true</IsActive>
<Name>sample string 2</Name>
<PartNumber>sample string 1</PartNumber>
<Prices>
<PriceUpdate>
<Cost>2</Cost>
<Currency>53ad8b55-2b6f-499d-8f2c-33f9b34624cc</Currency>
<EndDate>2026-07-15T18:36:21.1375786+00:00</EndDate>
<Overhead>3</Overhead>
<Price>1</Price>
<PriceBand>cb381c0e-44b2-427e-b5b9-7ae7e1a49cfe</PriceBand>
<StartDate>2026-07-15T18:36:21.1375786+00:00</StartDate>
</PriceUpdate>
<PriceUpdate>
<Cost>2</Cost>
<Currency>53ad8b55-2b6f-499d-8f2c-33f9b34624cc</Currency>
<EndDate>2026-07-15T18:36:21.1375786+00:00</EndDate>
<Overhead>3</Overhead>
<Price>1</Price>
<PriceBand>cb381c0e-44b2-427e-b5b9-7ae7e1a49cfe</PriceBand>
<StartDate>2026-07-15T18:36:21.1375786+00:00</StartDate>
</PriceUpdate>
</Prices>
</BatchPartUpsert>
<BatchPartUpsert>
<Description>sample string 3</Description>
<IsActive>true</IsActive>
<Name>sample string 2</Name>
<PartNumber>sample string 1</PartNumber>
<Prices>
<PriceUpdate>
<Cost>2</Cost>
<Currency>53ad8b55-2b6f-499d-8f2c-33f9b34624cc</Currency>
<EndDate>2026-07-15T18:36:21.1375786+00:00</EndDate>
<Overhead>3</Overhead>
<Price>1</Price>
<PriceBand>cb381c0e-44b2-427e-b5b9-7ae7e1a49cfe</PriceBand>
<StartDate>2026-07-15T18:36:21.1375786+00:00</StartDate>
</PriceUpdate>
<PriceUpdate>
<Cost>2</Cost>
<Currency>53ad8b55-2b6f-499d-8f2c-33f9b34624cc</Currency>
<EndDate>2026-07-15T18:36:21.1375786+00:00</EndDate>
<Overhead>3</Overhead>
<Price>1</Price>
<PriceBand>cb381c0e-44b2-427e-b5b9-7ae7e1a49cfe</PriceBand>
<StartDate>2026-07-15T18:36:21.1375786+00:00</StartDate>
</PriceUpdate>
</Prices>
</BatchPartUpsert>
</ArrayOfBatchPartUpsert>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
A result and log.
StatusResultOfBoolean| Name | Description | Type | Additional information |
|---|---|---|---|
| Status | boolean |
None. |
|
| Log | Collection of string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Status": true,
"Log": [
"sample string 1",
"sample string 2"
]
}
text/html
Sample:
{"Status":true,"Log":["sample string 1","sample string 2"]}
application/xml, text/xml
Sample:
<StatusResultOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Shared.Models.DataModels">
<Log xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</Log>
<Status>true</Status>
</StatusResultOfboolean>