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

Create a new unit.

Examples

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

# 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