Parts
Retrieve and manage part master records.
| Field | Data Type | POST | PATCH |
|---|---|---|---|
| PartID | String | X | X |
| Description | String | X | X |
| Type | String | X | X |
| UOM | String | X | X |
| Weight | Decimal | X | X |
| UOW | String | X | X |
| MFRID | String | X | X |
| Stock | String | X | X |
| Model | String | X | X |
| UNSPSCCode | String | X | X |
| PartClass | String | X | X |
| BalanceAccount | String | X | X |
| ExpenseAccount | String | X | X |
| WriteOffAccount | String | X | X |
| SingleSource | Boolean | X | X |
| Notes | String | X | X |
| Specifications | String | X | X |
| IsActive | Boolean | X | X |
| CreatedBy | String | ||
| DateCreated | DateTime | ||
| EditedBy | String | ||
| DateEdited | DateTime |
Key: PartID
Required property: PartID
Endpoints
GET
URL: https://{site}.mvpplant.com/ODataApi/v1/Parts
Description: Retrieve part master records.
POST
URL: https://{site}.mvpplant.com/ODataApi/v1/Parts
Description: Create a part record.
Body: Send the property values marked in the POST column.
PATCH
URL: https://{site}.mvpplant.com/ODataApi/v1/Parts('partID')
Description: Update an existing part record.
Body: Send only the property values you want to update from the PATCH column.
OData Query Examples
-
Select specific fields:
https://{site}.mvpplant.com/ODataApi/v1/Parts?$select=PartID,Description,Type -
Filter active parts:
https://{site}.mvpplant.com/ODataApi/v1/Parts?$filter=IsActive eq true -
Sort by part ID:
https://{site}.mvpplant.com/ODataApi/v1/Parts?$orderby=PartID -
Return the first 10 records:
https://{site}.mvpplant.com/ODataApi/v1/Parts?$top=10
Notes
CreatedBy,DateCreated,EditedBy, andDateEditedare system-generated fields.- Use
PartIDas the key field for part records.
