Parts

Create Part

Creates a new Part

post/parts

Request

Request body

descriptionstring
manufacturer_part_numberstring

The part number from this Part's manufacturer.

measurement_unit_idinteger
measurement_unit_namestring

The name of the measurement unit. If the measurement unit does not exist, it will be ignored.

numberstring required

The part number to be used for this Part within Fleetio. Must be unique. Does not have to be the same as the manufacturer's part number.

part_category_idinteger
part_category_namestring

The name of the part category. If the part category does not exist, it will be created.

part_manufacturer_idinteger
part_manufacturer_namestring

The name of the part manufacturer. If the part manufacturer does not exist, it will be created.

unit_costnumber

The cost per unit of this Part, which will be interpreted as dollars, or dollars and cents. May be sent as a string, integer, or float. Value may be up to two decimal places.

upcstring

The Universal Product Code for this Part. Must be unique.

custom_fieldsCustomFields nullable

*Full details on working with Custom Fields here.

Response

OK

idinteger required
created_atstring date-time

The date and time at which this record was created.

updated_atstring date-time

The date and time at which this record was most recently updated.

account_idinteger required
descriptionstring nullable required

A description of this Part.

manufacturer_part_numberstring nullable required

The part number from this Part's manufaturer.

measurement_unit_idinteger nullable required
numberstring required

A unique number for this Part. Does not have to be the same as the manufacturer's number.

part_category_idinteger nullable required
part_manufacturer_idinteger nullable required
upcstring nullable required

The Universal Product Code for this Part.

custom_fieldsCustomFields nullable required

*Full details on working with Custom Fields here.

unit_cost_centsinteger nullable

The unit cost for this Part in cents.

average_unit_cost_centsinteger nullable

The average unit cost for this Part in cents.

images_countinteger required

The number of images attached to this Part.

documents_countinteger required

The number of documents attached to this Part.

comments_countinteger required

The number of Comments attached to this Part.

archived_atstring date-time nullable required

The date and time at which this Part was archived.

has_active_inventory_setsboolean

Indicates whether this Part has any active Inventory Sets.

Example response

{
  "created_at": "2023-03-14T13:46:27-06:00",
  "updated_at": "2023-03-14T13:46:27-06:00",
  "archived_at": "2023-03-14T13:46:27-06:00"
}

Changes

No recorded changes to this operation across all 1 revision of this API.