Creates or updates a Asset Type and returns its ID.Looks up an existing record by external ID when one is provided; otherwise by Name. If a match is found, updates that record; otherwise creates a new one.
Request
Body Params application/jsonRequired
Example
{"name":"Split System Air Conditioner","category":"65","external_id":""}
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request PUT 'https://app.fieldinsight.com/public-api//asset-types/' \
--header'Content-Type: application/json' \
--data'{
"name": "Split System Air Conditioner",
"category": "65",
"external_id": ""
}'