Back to Aligni.com

POST /api/v2/:api_token/unit_conversion
Create a new unit conversion.

Create a new unit conversion.

Examples

# request
curl -X POST -H 'Accept: application/xml' -H 'Content-Type: application/xml' -d "
<unit_conversion>
  <from_unit_id>4</from_unit_id>
  <to_unit_id>5</to_unit_id>
  <factor>100</factor>
</unit_conversion>" \
https://demo.aligni.com/api/v2/oid3vLgynoy_Yl1gZkrgkLEq3J/unit_conversion

# response
<unit_conversion>
  ...
</unit_conversion>

Params

Param name Description
api_token
required

Your API token.


Value: Must be a String

DELETE /api/v2/:api_token/unit_conversion/:id
Delete a unit conversion.

Delete a unit conversion by its id.

Examples

# request
curl -X DELETE -H 'Accept: application/xml' -H 'Content-Type: application/xml' \
https://demo.aligni.com/api/v2/oid3vLgynoy_Yl1gZkrgkLEq3J/unit_conversion/15

# no response

Params

Param name Description
api_token
required

Your API token.


Value: Must be a String
id
required

Value: Must be a number.