Skip to main content

Create Part

Creates a new Part

info

tire_config support is currently in private beta.

Request Body

  • description string
  • manufacturer_part_number string

    Possible values: <= 255 characters

    The part number from this Part's manufacturer.

  • measurement_unit_id integer

    Possible values: >= 1

  • measurement_unit_name string

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

  • number string required

    Possible values: <= 255 characters

    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_id integer

    Possible values: >= 1

  • part_category_name string

    Possible values: <= 255 characters

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

  • part_manufacturer_id integer

    Possible values: >= 1

  • part_manufacturer_name string

    Possible values: <= 255 characters

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

  • unit_cost object

    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.

    oneOf

  • string
  • upc string

    Possible values: <= 255 characters

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

  • custom_fields object

    *Full details on working with Custom Fields here.

Responses

OK

Response Headers


    Schema

    • id integer

      Possible values: >= 1

    • created_at date-time

      The date and time at which this record was created.

    • updated_at date-time

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

    • account_id integer

      Possible values: >= 1

    • description string

      A description of this Part.

    • manufacturer_part_number string

      The part number from this Part's manufaturer.

    • measurement_unit_id NullableId

      Possible values: >= 1

    • number string

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

    • part_category_id NullableId

      Possible values: >= 1

    • part_manufacturer_id NullableId

      Possible values: >= 1

    • upc string

      The Universal Product Code for this Part.

    • custom_fields object

      *Full details on working with Custom Fields here.

    • unit_cost_cents integer

      The unit cost for this Part in cents.

    • average_unit_cost_cents integer

      The average unit cost for this Part in cents.

    • images_count integer

      The number of images attached to this Part.

    • documents_count integer

      The number of documents attached to this Part.

    • comments_count integer

      The number of Comments attached to this Part.

    • archived_at date-time

      The date and time at which this Part was archived.

    • measurement_unit object
    • id integer

      Possible values: >= 1

    • name string
    • description string
    • symbol string
    • has_active_inventory_sets boolean

      Indicates whether this Part has any active Inventory Sets.

    Loading...