Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Uri
Method
Request Data
Success Response Code
Description
/api/assetsGET 200Returns an Array of all Assets
/api/assets/{id}GET 200Returns one Asset
/api/assetsPOSTAsset201Create new Asset
/api/assets/{id}PUTAsset204Update an existing Asset
/api/assets/{id}DELETE 200Delete an Asset
/api/assets/{assetId}/custom-field-valuesGET 200Returns an array of all AssetCustomFieldValues for the Asset
/api/assets/{assetId}/custom-field-values/{cfValueId}GET 200Returns one AssetCustomFieldValue
/api/assets/{assetId}/custom-field-valuesPOSTAssetCustomFieldValue201Create a new AssetCustomFieldValue for an Asset
/api/assets/{assetId}/custom-field-values/{cfValueId}PUTAssetCustomFieldValue200Update an exising AssetCustomFieldValue
/api/assets/{assetId}/custom-field-values/{cfValueId}DELETE 200Delete an AssetCustomFieldValue

Examples

Get a list of all Assets:

 

curl http://localhost:8080/ehelpdesk/api/assets -u admin:admin -H "Accept: */*" | json_reformat

Produces the result:

...