Back to Aligni.com


Note: If manufacturer_pn or part_id is specified it will also change the assembly part.

Examples

# Updating a BOM item.
curl -X PUT -H 'Accept: application/xml' -H 'Content-Type: application/xml' -d "
<subpart>
  <quantity>70</quantity>
  <comment>The very most important piece.</comment>
  <build_sequence>1234</build_sequence>
</subpart>" \
https://demo.aligni.com/api/v2/oid3vLgynoy_Yl1gZkrgkLEq3J/subpart/351

# Response
<subpart>
  <id>351</id>
  <subpart_id>574</subpart_id>
  <quantity>70</quantity>
  <build_sequence>1234</build_sequence>
  <designator>C22, C52</designator>
  <comment>The very most important piece.</comment>
  <no_load>false</no_load>
</subpart>

# Updating the BOM item assembly by manufacturer_pn.
curl -X PUT -H 'Accept: application/xml' -H 'Content-Type: application/xml' -d "
<subpart>
  <manufacturer_pn>CRCW060328K0FKEA</manufacturer_pn>
  <quantity>70</quantity>
  <build_sequence>1234</build_sequence>
  <comment>The very most important piece.</comment>
</subpart>" \
https://demo.aligni.com/api/v2/oid3vLgynoy_Yl1gZkrgkLEq3J/subpart/351

# Updating the BOM item assembly by part_id.
curl -X PUT -H 'Accept: application/xml' -H 'Content-Type: application/xml' -d "
<subpart>
  <part_id>766</part_id>
  <quantity>70</quantity>
  <build_sequence>1234</build_sequence>
  <comment>The very most important piece.</comment>
</subpart>" \
https://demo.aligni.com/api/v2/oid3vLgynoy_Yl1gZkrgkLEq3J/subpart/351

# Response
<subpart>
  <id>351</id>
  <subpart_id>766</subpart_id>
  <quantity>70</quantity>
  <build_sequence>1234</build_sequence>
  <designator>C22, C52</designator>
  <comment>The very most important piece.</comment>
</subpart>

Params

Param name Description
api_token
required

Your API token.


Value: Must be a String
id
required

ID of subpart.


Value: Must be a Integer
part_id
optional

ID of the assembly's part record.
Note: If part_id is specified it will also change the assembly's part record.


Value: Must be a Integer
manufacturer_pn
optional

String on an assembly's part record.
Note: If manufacturer_pn is specified it will also change the assembly's part record.


Value: Must be a String
quantity
optional

The item's quantity on the subassembly. The unit of measure is always the item's UoM.
Quantity can be a decimal value when the item's unit of measure allows fractional numbers.


Value: Must be a number.
designator
optional

Reference designator string for the item.


Value: Must be a String
comment
optional

Comment string for the item.


Value: Must be a String
no_load
optional

Defaults to false if not specified.


Value: Must be one of: <code>true</code>, <code>false</code>.
build_sequence
optional

Build sequence number for the item.


Value: Must be a Integer