Create asset
documentedCreate a new asset.
POST /api/v2/assetsAssetsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://app.mojohelpdesk.com/api/v2/assets?access_key={{MOJOHELPDESK_API_KEY}}" \
-X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"asset_tag": "{{$asset_tag}}", "display_name": "{{$display_name}}", "description": "{{$description}}", "serial_number": "{{$serial_number}}", "asset_type_id": {{$asset_type_id}}, "location_id": {{$location_id}}, "department_id": {{$department_id}}, "managed_by_id": {{$managed_by_id}}, "used_by_id": {{$used_by_id}}, "asset_status_id": {{$asset_status_id}}, "notes": "{{$notes}}", "purchased_on": "{{$purchased_on}}", "cost": {{$cost}}, "purchase_order_number": "{{$purchase_order_number}}", "vendor": "{{$vendor}}", "warranty_info": "{{$warranty_info}}"}'