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

Updates a vendor record. A user can delete addresses and phone numbers associated with a vendor by sending the _destroy field set to true with the respective id. The following example creates, updates, and destroys addresses.

Examples

# request

curl -X PUT -H 'Accept: application/xml' -H 'Content-Type: application/xml' -d "
<vendor>
  <name>Aligni Inc.</name>
  <addresses type="array">
    <address>
      <id>1</id>
      <label>Office</label>
    </address>
    <address>
      <label>HQ</label>
      <street>123 here</street>
      <city>Portland</city>
      <state>Oregon</state>
      <postcode>97206</postcode>
      <country>US</country>
    </address>
    <address>
      <id>2</id>
      <_destroy>true</_destroy>
    </address>
  </addresses>
</vendor>" \
https://demo.aligni.com/api/v2/oid3vLgynoy_Yl1gZkrgkLEq3J/vendor/69

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

Params

Param name Description
api_token
required

Your API token.


Value: Must be a String
id
required

Value: Must be a number.