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

Updates a unit record.

Examples

# request
curl -X PUT -H 'Accept: application/xml' -H 'Content-Type: application/xml' -d "
<unit>
  <name>per small box</name>
  <description>one small box</description>
</unit>" \
https://demo.aligni.com/api/v2/oid3vLgynoy_Yl1gZkrgkLEq3J/unit/14

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

Params

Param name Description
api_token
required

Your API token.


Value: Must be a String
id
required

Value: Must be a number.