Back to Aligni.com
Also see show action for detailed XML part response example.

Create a new part.

Examples

# request
curl -X POST -H 'Accept: application/xml' -H 'Content-Type: application/xml' -d "
<part>
  <manufacturer_pn>C0603C104K4RACTU</manufacturer_pn>
  <manufacturer_id>147</manufacturer_id>
  <parttype_id>47</parttype_id>
  <unit_id>2</unit_id>
  <preferred_vendor_id>3</preferred_vendor_id>
  <inventory_price>0.009</inventory_price>
  <x_packaging>Box</x_packaging>
  <revision>
    <revision_name>A1</revision_name>
    <description>Ceramic capacitor</description>
    <comment>SM-0603, 10%, 16v, X7R</comment>
    <rohs>1</rohs>
    <x_schematic_symbol>A</x_schematic_symbol>
    <x_pcb_footprint_1>B</x_pcb_footprint_1>
  </revision>
</part>" \
https://demo.aligni.com/api/v2/oid3vLgynoy_Yl1gZkrgkLEq3J/part

# response (for detailed part XML see show action)
<part>
  ...
</part>

Params

Param name Description
api_token
required

Your API token.


Value: Must be a String
part
required

Value: Must be a Hash
part[manufacturer_pn]
required

Manufacturer P/N


Value: Must be a String
part[manufacturer_id]
required

Manufacturer ID


Value: Must be a Integer
part[parttype_id]
required

Part Type ID


Value: Must be a Integer
part[unit_id]
required

Use-as Unit ID


Value: Must be a Integer
part[revision]
required

Value: Must be a Hash
part[revision][revision_name]
required

Revision Name


Value: Must be a String