Create hardware
documentedCreate a new hardware asset.
POST /hardwares.jsonHardwaresno 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://api.samanage.com/hardwares.json" \
-X POST \
-H "X-Samanage-Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Accept: application/vnd.samanage.v2.1+json" \
-H "Content-Type: application/json" \
-d '{"hardware": {"name": "{{$name}}", "serial_number": "{{$serial_number}}", "model": "{{$model}}", "vendor": "{{$vendor}}", "asset_tag": "{{$asset_tag}}"}}'