Sign in

Create asset

documented

Create a new asset.

POST /api_1.0/asset.jsonAssetsno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

Note: ServiceM8's REST API does not publicly expose a create-asset (POST /api_1.0/asset.json) endpoint. The official API reference shows listing, retrieving, updating, and deleting assets, but not creation. Use the update path (POST /api_1.0/asset/{uuid}.json) to modify an existing asset instead. See: List all Assets (GET https://api.servicem8.com/api_1.0/asset.json) and Update an Asset (POST https://api.servicem8.com/api_1.0/asset/{uuid}.json). For authentication, ServiceM8 uses the X-API-Key header for API-key based access. ([developer.servicem8.com](https://developer.servicem8.com/reference/listassets))

npx -y keychains@latest curl "https://api.servicem8.com/api_1.0/asset/{{$uuid}}.json" \
  -X POST \
  -H "X-API-Key: {{SERVICEM8_API_KEY}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"name": "{{$asset_name}}", "serialNo": "{{$serial_no}}", "assetsType": {"id": {{$asset_type_id}}}, "installationDate": "{{$installation_date}}", "warrantyStartDate": "{{$warranty_start}}", "warrantyEndDate": "{{$warranty_end}}", "description": "{{$description}}", "externalId": "{{$external_id}}", "attachments": []}'
Create asset · ServiceM8 · OpenIntegrations