diff --git a/examples/asset-types.http b/examples/asset-types.http index 4a81a61..1074bf0 100644 --- a/examples/asset-types.http +++ b/examples/asset-types.http @@ -7,8 +7,8 @@ DELETE {{api-server}}/v2/asset-types/Test Type X-Api-Key: {{read-write-token}} ### Selects asset type -GET {{api-server}}/v2/asset-types/gp_joule_resent_sessions?expansions=AssetType.attributes -X-Api-Key: {{read-only-token}} +GET {{api-server}}/v2/asset-types/Niagara Watchdog?expansions=AssetType.attributes +X-Api-Key: {{read-write-token}} ### Inserts POST {{api-server}}/v2/asset-types?expansions=AssetType.attributes diff --git a/examples/assets.http b/examples/assets.http index 91c7c14..e57dc24 100644 --- a/examples/assets.http +++ b/examples/assets.http @@ -3,7 +3,7 @@ GET {{api-server}}/v2/assets X-Api-Key: {{read-only-token}} ### Select asset with id -GET {{api-server}}/v2/assets/16042 +GET {{api-server}}/v2/assets/7 X-Api-Key: {{read-write-token}} ### Select asset with id and attachments @@ -35,11 +35,21 @@ Content-Type: application/json { "projectId": "10", - "globalAssetIdentifier": "GAI 4711112ds", + "globalAssetIdentifier": "1234567890", "name": "Test Asset", - "assetType": "Space", - "parentLocationalAssetId": 15879, - "parentFunctionalAssetId": 15877 + "assetType": "Space" +} + +### Update asset +PUT {{api-server}}/v2/assets +X-Api-Key: {{read-write-token}} +Content-Type: application/json + +{ + "projectId": "10", + "globalAssetIdentifier": "1234567890", + "name": "Test Asset 1", + "assetType": "Space" } ### Insert asset with attachment diff --git a/examples/data.http b/examples/data.http index 3d90904..789c06f 100644 --- a/examples/data.http +++ b/examples/data.http @@ -3,7 +3,7 @@ GET {{api-server}}/v2/data X-Api-Key: {{read-only-token}} ### Get all data based on asset id -GET {{api-server}}/v2/data?assetId=3613 +GET {{api-server}}/v2/data?assetId=927& X-Api-Key: {{read-only-token}} ### Get all data based on subtype @@ -15,7 +15,7 @@ GET {{api-server}}/v2/data?assetTypeName=VIRTUAL Battery X-Api-Key: {{read-only-token}} ### Get data trends -GET {{api-server}}/v2/data-trends?assetTypeName=VIRTUAL Battery&fromDate=2022-07-30T20:00:00.000%2B02:00&toDate=2022-07-30T21:00:00.000%2B02:00 +GET {{api-server}}/v2/data-trends?assetId=102&dataSubtype=input&fromDate=2024-04-03T00:00:00.000%2B02:00 X-Api-Key: {{read-only-token}} ### Get data aggs @@ -31,10 +31,10 @@ PUT {{api-server}}/v2/data X-Api-Key: {{read-write-token}} { - "assetId": 16297, + "assetId": 17534, "subtype": "input", "data": { - "session_count": 1 + "value": null } } @@ -42,14 +42,13 @@ X-Api-Key: {{read-write-token}} PUT {{api-server}}/v2/data X-Api-Key: {{read-write-token}} - { - "assetId": 8514, - "subtype": "input", - "data": { - "brightness": 188 - }, - "clientReference": "42" - } +{ + "data": { + "value":99 + }, +"subtype":"input", +"assetId":17501 +} ### Put data bulk PUT {{api-server}}/v2/data-bulk