Part Types
Retrieve and manage part type records.
| Field | Data Type | POST | PATCH |
|---|---|---|---|
| PartType | String | X | X |
| IsActive | Boolean | X | X |
| Description | String | X | X |
| CreatedBy | String | ||
| DateCreated | DateTime | ||
| EditedBy | String | ||
| DateEdited | DateTime |
Key: PartType
Required property: PartType
Endpoints
GET
URL: https://{site}.mvpplant.com/ODataApi/v1/PartTypes
Description: Retrieve part type records.
POST
URL: https://{site}.mvpplant.com/ODataApi/v1/PartTypes
Description: Create a part type record.
Body: Send the property values marked in the POST column.
PATCH
URL: https://{site}.mvpplant.com/ODataApi/v1/PartTypes('partType')
Description: Update an existing part type 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/PartTypes?$select=PartType,Description -
Filter active part types:
https://{site}.mvpplant.com/ODataApi/v1/PartTypes?$filter=IsActive eq true -
Sort by part type:
https://{site}.mvpplant.com/ODataApi/v1/PartTypes?$orderby=PartType -
Return the first 10 records:
https://{site}.mvpplant.com/ODataApi/v1/PartTypes?$top=10
Notes
CreatedBy,DateCreated,EditedBy, andDateEditedare system-generated fields.- Use
PartTypeas the key field for part type records.
