Part Types

Part Types

Retrieve and manage part type records.

FieldData TypePOSTPATCH
PartTypeStringXX
IsActiveBooleanXX
DescriptionStringXX
CreatedByString
DateCreatedDateTime
EditedByString
DateEditedDateTime

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, and DateEdited are system-generated fields.
  • Use PartType as the key field for part type records.