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

Updates a part record. Note that this API will allow users with 'can edit released part revisions' permission to make changes to a released revision. These changes are not logged. When using a partnumber, replace

url :id with :partnumber and append the URL with find_by=partnumber query.

Examples

# request
curl -X PUT -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>
  <x_packaging>Crate</x_packaging>
  <revision>
    <revision_name>A2</revision_name>
    <description>Ceramic capacitor</description>
    <x_pcb_footprint_1>CAP0603</x_pcb_footprint_1>
  </revision>
</part>" \
https://demo.aligni.com/api/v2/oid3vLgynoy_Yl1gZkrgkLEq3J/part/728

# response (for detailed part XML see show action)
<part>
  ...
</part>
# Update specific part revision by adding revision_id to URL
# request
curl -X PUT -H 'Accept: application/xml' -H 'Content-Type: application/xml' -d "
<part>
  <revision>
    <revision_name>A2</revision_name>
    <description>Ceramic capacitor</description>
  </revision>
</part>" \
https://demo.aligni.com/api/v2/oid3vLgynoy_Yl1gZkrgkLEq3J/part/728?revision_id=231

# 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
id
required

Value: Must be a number.
partnumber
optional

Must include find_by query


Value: Must be a String