Create asset type
post
/assetMonitoring/clientapi/v2/assetTypes
This operation creates a new asset type in the Oracle IoT Asset Monitoring Cloud Service instance.
Request
Supported Media Types
- multipart/form-data
Root Schema : AssetTypeImpl_create
Type:
Show Source
object
-
attributes(optional):
array attributes
List of asset types attributes
-
description(optional):
string
Description of the asset type provided by the user
-
lastModifiedBy:
string
Name of the user who last modified the definition of asset type.
-
maintenanceActivities(optional):
array maintenanceActivities
List of maintenance activities for the particular asset
-
metrics(optional):
array metrics
List of asset type metrics
-
name(optional):
string
Unique mutable name of the asset type object. If name is not specified during asset creation, it will be set to the same value as generated uniqu asset type ID
-
organizationId(optional):
string
The organization id for the given asset type
Nested Schema : maintenanceActivities
Type:
array
List of maintenance activities for the particular asset
Show Source
Nested Schema : AssetAttributeDefinition_create
Type:
Show Source
object
-
allowedValues(optional):
array allowedValues
List of allowed values for the given field e.g. For the type field, it can be the names of all the asset types registered with the system.
-
assetTypeId(optional):
string
Applicable only when "type" is asset. If type is asset, then asset type id must be specified.
-
dataType(optional):
string
Applicable only when "type" is sensor. If type is sensor, then dataType must be specified.One of [STRING, NUMBER, BOOLEAN, INTEGER, DATETIME, URI, DATE].
-
deviceModel(optional):
string
Applicable only when "type" is device. If type is device, then deviceModel must be specified.
-
instructions(optional):
string
A human friendly instructions on how to fill given attribute
-
kind:
string
Type of the asset attribute. Following types would be supported &qot;string&qot;, &qot;number&qot;, &qot;boolean&qot;, &qot;date&qot;, &qot;binary&qot;, &qot;device&qot;, &qot;asset&qot;, &qot;sensor&qot;One of [STATIC, DYNAMIC, ASSET, DEVICE, BINARY, ALERT, SENSOR, CONTROL].
-
legacySensorAttribute:
boolean
Property description was not set
-
name:
string
Name of the asset attribute e.g. &qot;name&qot;, &qot;manufacturer&qot;, &qot;brand&qot;, &qot;status&qot; etc. Name should be unique across asset attributes of a given type
-
partitioningByAllowedValues:
boolean
Property description was not set
-
properties:
object properties
Additional Properties Allowed: additionalPropertiesProperty description was not set
-
referencedEntityIdentifier:
string
Property description was not set
-
required(optional):
boolean
Specifies whether the asset must define this attribute to be valid
-
samplingPolicy:
object SamplingPolicy_create
-
sensorAttributes:
array sensorAttributes
Property description was not set
-
simulation(optional):
object Simulation_create
-
static:
boolean
Property description was not set
-
type:
string
Type of the asset attribute. Following types would be supported &qot;string&qot;, &qot;number&qot;, &qot;boolean&qot;, &qot;date&qot;, &qot;binary&qot;, &qot;device&qot;, &qot;asset&qot;, &qot;sensor&qot;
-
unique(optional):
boolean
Specifies whether the asset attribute value must be unique
-
valuePropagation:
object AssetAttributeValuePropagation_create
Nested Schema : allowedValues
Type:
array
List of allowed values for the given field e.g. For the type field, it can be the names of all the asset types registered with the system.
Show Source
Nested Schema : properties
Type:
object
Additional Properties Allowed
Show Source
-
string
A map of the following type: Map<String, String>
Property description was not set
Show Source
Nested Schema : SamplingPolicy_create
Type:
Show Source
object
-
entityTypeId(optional):
string
Property description was not set
-
id:
string
Property description was not set
Nested Schema : Simulation_create
Type:
Show Source
object
-
actionStepSimulationDuration:
array actionStepSimulationDuration
Property description was not set
-
anomalyDuration:
array anomalyDuration
Property description was not set
-
anomalySimulation:
array anomalySimulation
Property description was not set
-
extensions:
object extensions
Additional Properties Allowed: additionalPropertiesProperty description was not set
-
frequency:
array frequency
Property description was not set
-
interval:
array interval
Property description was not set
-
intervalRequired:
boolean
Property description was not set
-
probability:
array probability
Property description was not set
-
type:
string
Type of simulationOne of [PATTERN, FORMULA, CSV_REFERENCE].
Nested Schema : AssetAttributeValuePropagation_create
Type:
Show Source
object
-
assetAttributeId:
string
Property description was not set
-
reverseDirection:
boolean
Property description was not set
-
sourceAttributeId:
string
Property description was not set
Nested Schema : items
Type:
object
Nested Schema : SensorAttributeType_create
Type:
Show Source
object
-
field:
string
The name of the field.
-
fieldType:
string
The type of the field.
-
format:
string
The format asssociated with this attribute.
-
id:
string
The unique id of the sensor.
-
keepHistory:
boolean
A flag for whether to keep history for this attribute.
-
name:
string
The name of this attribute.
Nested Schema : actionStepSimulationDuration
Type:
array
Property description was not set
Show Source
Nested Schema : extensions
Type:
object
Additional Properties Allowed
Show Source
-
string
A map of the following type: Map<String, String>
Property description was not set
Show Source
Nested Schema : items
Type:
object
Nested Schema : AssetMaintenanceActivity_create
Type:
Show Source
object
-
description:
string
Description of the asset maintenance activity
-
id:
string
Id of the asset maintenance activity
-
name:
string
Name of the asset maintenance activity
Nested Schema : AssetMetric_create
Type:
Show Source
object
-
description:
string
Description of the metric. This can be used in the UI.
-
displayName:
string
User-friendly name of the metric to be used in UI
-
frequency:
string
How frequently this metric would be computedOne of [HOURLY, DAILY, WEEKLY, MONTHLY].
-
id:
string
Unique and immutable id of the asset metric
-
name:
string
Name of the metric. e.g. mileage, utilization, totalUsage, efficiency, lifespan, currentLocation, energySavings, presenceInPlace, etc. Name of the metric should be unique across all the metrics defined for an asset type
-
parameters:
object parameters
Additional Properties Allowed: additionalPropertiesList of parameters provided by user that would be required for computing the metric. For example, for tracking "availability", or "ghost assets", parameter can be "duration". In this case all the assets that have not reported in last time interval greater than or equal to "duration" would be considered unavailable.
-
type:
string
One of [STRING, NUMBER, BOOLEAN, PERCENTAGE].
Nested Schema : parameters
Type:
object
Additional Properties Allowed
Show Source
-
string
A map of the following type: Map<String, String>
List of parameters provided by user that would be required for computing the metric. For example, for tracking "availability", or "ghost assets", parameter can be "duration". In this case all the assets that have not reported in last time interval greater than or equal to "duration" would be considered unavailable.
Show Source
Response
Supported Media Types
- application/json
202 Response
Successfully processed.
Root Schema : AssetTypeImpl_receive
Type:
Show Source
object
-
actions:
object actions
Access actions definitions for the given asset type
-
attributes:
array attributes
List of asset types attributes
-
classes:
array classes
Read-only set of classes assigned to the given asset type
-
description:
string
Description of the asset type provided by the user
-
icon:
object icon
Binary object representing asset type icon. To set asset icon, binary stream with image data should be posted to the server as a multipart request
-
id:
string
Unique immutable id of the asset type object
-
lastModifiedBy:
string
Name of the user who last modified the definition of asset type.
-
lastModifiedTime:
integer
The time when the asset definition was last updated as an epoch value.
-
lastModifiedTimeAsString:
integer
The time when the asset type was last updated as an ISO-8601 formatted string.
-
maintenanceActivities:
array maintenanceActivities
List of maintenance activities for the particular asset
-
metrics:
array metrics
List of asset type metrics
-
name:
string
Unique mutable name of the asset type object. If name is not specified during asset creation, it will be set to the same value as generated uniqu asset type ID
-
organizationId:
string
The organization id for the given asset type
Nested Schema : actions
Type:
object
Access actions definitions for the given asset type
Show Source
-
links(optional):
array links
The set of API navigation links.
Nested Schema : classes
Type:
array
Read-only set of classes assigned to the given asset type
Show Source
Nested Schema : icon
Type:
object
Binary object representing asset type icon. To set asset icon, binary stream with image data should be posted to the server as a multipart request
Show Source
-
links(optional):
array links
The set of API navigation links.
Nested Schema : maintenanceActivities
Type:
array
List of maintenance activities for the particular asset
Show Source
Nested Schema : items
Type:
Show Source
object
-
href(optional):
string
The target resource URIExample:
https://iotserver/iot/api/vX/some/API/path
-
rel(optional):
string
Relation typeExample:
canonical
Nested Schema : AssetAttributeDefinition_receive
Type:
Show Source
object
-
allowedValues:
array allowedValues
List of allowed values for the given field e.g. For the type field, it can be the names of all the asset types registered with the system.
-
assetTypeId:
string
Applicable only when "type" is asset. If type is asset, then asset type id must be specified.
-
dataType:
string
Applicable only when "type" is sensor. If type is sensor, then dataType must be specified.One of [STRING, NUMBER, BOOLEAN, INTEGER, DATETIME, URI, DATE].
-
deviceModel:
string
Applicable only when "type" is device. If type is device, then deviceModel must be specified.
-
id:
string
Identifier of the asset attribute e.g. &qot;id&qot;, &qot;0-AB&qot; etc. Identifier should be unique across asset attributes of a given type. This value is present only for attributes of type equal to SENSOR
-
instructions:
string
A human friendly instructions on how to fill given attribute
-
kind:
string
Type of the asset attribute. Following types would be supported &qot;string&qot;, &qot;number&qot;, &qot;boolean&qot;, &qot;date&qot;, &qot;binary&qot;, &qot;device&qot;, &qot;asset&qot;, &qot;sensor&qot;One of [STATIC, DYNAMIC, ASSET, DEVICE, BINARY, ALERT, SENSOR, CONTROL].
-
name:
string
Name of the asset attribute e.g. &qot;name&qot;, &qot;manufacturer&qot;, &qot;brand&qot;, &qot;status&qot; etc. Name should be unique across asset attributes of a given type
-
partitioningByAllowedValues:
boolean
Property description was not set
-
properties:
object properties
Additional Properties Allowed: additionalPropertiesProperty description was not set
-
required:
boolean
Specifies whether the asset must define this attribute to be valid
-
samplingPolicy:
object SamplingPolicy_receive
-
sensorAttributes:
array sensorAttributes
Property description was not set
-
simulation:
object Simulation_receive
-
static:
boolean
Property description was not set
-
type:
string
Type of the asset attribute. Following types would be supported &qot;string&qot;, &qot;number&qot;, &qot;boolean&qot;, &qot;date&qot;, &qot;binary&qot;, &qot;device&qot;, &qot;asset&qot;, &qot;sensor&qot;
-
unique:
boolean
Specifies whether the asset attribute value must be unique
-
valuePropagation:
object AssetAttributeValuePropagation_receive
Nested Schema : allowedValues
Type:
array
List of allowed values for the given field e.g. For the type field, it can be the names of all the asset types registered with the system.
Show Source
Nested Schema : properties
Type:
object
Additional Properties Allowed
Show Source
-
string
A map of the following type: Map<String, String>
Property description was not set
Show Source
Nested Schema : SamplingPolicy_receive
Type:
Show Source
object
-
interval:
integer
Property description was not set
-
type:
string
One of [NONE, LAST_VALUE, MINIMUM_VALUE, MAXIMUM_VALUE, MEAN_VALUE, THRESHOLD_VIOLATIONS].
Nested Schema : Simulation_receive
Type:
Show Source
object
-
extensions:
object extensions
Additional Properties Allowed: additionalPropertiesProperty description was not set
-
type:
string
Type of simulationOne of [PATTERN, FORMULA, CSV_REFERENCE].
Nested Schema : AssetAttributeValuePropagation_receive
Type:
Show Source
object
-
assetAttributeId:
string
Property description was not set
-
reverseDirection:
boolean
Property description was not set
-
sourceAttributeId:
string
Property description was not set
Nested Schema : items
Type:
object
Nested Schema : SensorAttributeType_receive
Type:
Show Source
object
-
field:
string
The name of the field.
-
format:
string
The format asssociated with this attribute.
-
id:
string
The unique id of the sensor.
-
name:
string
The name of this attribute.
Nested Schema : extensions
Type:
object
Additional Properties Allowed
Show Source
-
string
A map of the following type: Map<String, String>
Property description was not set
Show Source
Nested Schema : items
Type:
Show Source
object
-
href(optional):
string
The target resource URIExample:
https://iotserver/iot/api/vX/some/API/path
-
rel(optional):
string
Relation typeExample:
canonical
Nested Schema : AssetMaintenanceActivity_receive
Type:
Show Source
object
-
description:
string
Description of the asset maintenance activity
-
name:
string
Name of the asset maintenance activity
Nested Schema : AssetMetric_receive
Type:
Show Source
object
-
description:
string
Description of the metric. This can be used in the UI.
-
displayName:
string
User-friendly name of the metric to be used in UI
-
frequency:
string
How frequently this metric would be computedOne of [HOURLY, DAILY, WEEKLY, MONTHLY].
-
name:
string
Name of the metric. e.g. mileage, utilization, totalUsage, efficiency, lifespan, currentLocation, energySavings, presenceInPlace, etc. Name of the metric should be unique across all the metrics defined for an asset type
-
parameters:
object parameters
Additional Properties Allowed: additionalPropertiesList of parameters provided by user that would be required for computing the metric. For example, for tracking "availability", or "ghost assets", parameter can be "duration". In this case all the assets that have not reported in last time interval greater than or equal to "duration" would be considered unavailable.
-
type:
string
One of [STRING, NUMBER, BOOLEAN, PERCENTAGE].
Nested Schema : parameters
Type:
object
Additional Properties Allowed
Show Source
-
string
A map of the following type: Map<String, String>
List of parameters provided by user that would be required for computing the metric. For example, for tracking "availability", or "ghost assets", parameter can be "duration". In this case all the assets that have not reported in last time interval greater than or equal to "duration" would be considered unavailable.
Show Source
400 Response
Bad Request. The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.
401 Response
Unauthorized. The request requires user authentication.
403 Response
Forbidden. The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated.
406 Response
Request Not Acceptable. The resource identified by the request is only capable of generating response entities which have content characteristics not acceptable according to the accept headers sent in the request.
415 Response
Unsupported Media Type. The request entity has a media type which the server or resource does not support.
Examples
curl -X POST
-u <username>:<password>
-H 'Accept: application/json'
https://iotserver/assetMonitoring/clientapi/v2/assetTypes
Example of Request Body
The following example shows the content of the request body in JSON format:
{
"attributes":[
{
"assetTypeId":"affc5f42d6-2400",
"dataType":"Applicable only when 'type' is sensor. If type is sensor, then dataType must be specified.One of [STRING, NUMBER, BOOLEAN, INTEGER, DATETIME, URI, DATE].",
"deviceModel":"Applicable only when 'type' is device. If type is device, then deviceModel must be specified.",
"instructions":"A human friendly instructions on how to fill given attribute",
"kind":"Type of the asset attribute. Following types would be supported &qot;string&qot;, &qot;number&qot;, &qot;boolean&qot;, &qot;date&qot;, &qot;binary&qot;, &qot;device&qot;, &qot;asset&qot;, &qot;sensor&qot;One of [STATIC, DYNAMIC, ASSET, DEVICE, BINARY, ALERT, SENSOR, CONTROL].",
"legacySensorAttribute":false,
"name":"Name of the asset attribute e.g. &qot;name&qot;, &qot;manufacturer&qot;, &qot;brand&qot;, &qot;status&qot; etc. Name should be unique across asset attributes of a given type",
"partitioningByAllowedValues":false,
"properties":{
"properties_key1":"properties_value1",
"properties_key2":"properties_value2",
"properties_key3":"properties_value3"
},
"referencedEntityIdentifier":"Property description was not set",
"required":false,
"samplingPolicy":{
"entityTypeId":"11b4306a3acc-5c9d",
"id":"64661d703dc8-54f"
},
"sensorAttributes":[
{
"field":"The name of the field.",
"fieldType":"The type of the field.",
"format":"The format asssociated with this attribute.",
"id":"1f826753f4f-10a5",
"keepHistory":false,
"name":"The name of this attribute."
}
],
"simulation":{
"actionStepSimulationDuration":[
"actionStepSimulationDuration_1",
"actionStepSimulationDuration_2",
"actionStepSimulationDuration_3"
],
"anomalyDuration":[
"anomalyDuration_1",
"anomalyDuration_2",
"anomalyDuration_3"
],
"extensions":{
"extensions_key1":"extensions_value1",
"extensions_key2":"extensions_value2",
"extensions_key3":"extensions_value3"
},
"frequency":[
"frequency_1",
"frequency_2",
"frequency_3"
],
"interval":[
"interval_1",
"interval_2",
"interval_3"
],
"intervalRequired":false,
"probability":[
"probability_1",
"probability_2",
"probability_3"
],
"type":"Type of simulationOne of [PATTERN, FORMULA, CSV_REFERENCE]."
},
"static":false,
"type":"Type of the asset attribute. Following types would be supported &qot;string&qot;, &qot;number&qot;, &qot;boolean&qot;, &qot;date&qot;, &qot;binary&qot;, &qot;device&qot;, &qot;asset&qot;, &qot;sensor&qot;",
"unique":false,
"valuePropagation":{
"assetAttributeId":"1c733cf2398c-44e3",
"reverseDirection":false,
"sourceAttributeId":"458126353bb7-2ce3"
}
}
],
"description":"Description of the asset type provided by the user",
"lastModifiedBy":"Name of the user who last modified the definition of asset type.",
"maintenanceActivities":[
{
"description":"Description of the asset maintenance activity",
"id":"174f18e3ceb-355a",
"name":"Name of the asset maintenance activity"
}
],
"metrics":[
{
"description":"Description of the metric. This can be used in the UI.",
"displayName":"User-friendly name of the metric to be used in UI",
"frequency":"How frequently this metric would be computedOne of [HOURLY, DAILY, WEEKLY, MONTHLY].",
"id":"6b6124d32bde-34bc",
"name":"Name of the metric. e.g. mileage, utilization, totalUsage, efficiency, lifespan, currentLocation, energySavings, presenceInPlace, etc. Name of the metric should be unique across all the metrics defined for an asset type",
"parameters":{
"parameters_key1":"parameters_value1",
"parameters_key2":"parameters_value2",
"parameters_key3":"parameters_value3"
},
"type":"One of [STRING, NUMBER, BOOLEAN, PERCENTAGE]."
}
],
"name":"Unique mutable name of the asset type object. If name is not specified during asset creation, it will be set to the same value as generated uniqu asset type ID",
"organizationId":"3a407a99a62-2f8e"
}
Example of Response Body
The following example shows the content of the response body in JSON format:
{
"actions":{
"links":[
{
"href":"https://iotserver/assetMonitoring/clientapi/version/resource/path",
"rel":"self"
},
{
"href":"https://iotserver/assetMonitoring/clientapi/version/resource/path",
"rel":"canonical"
}
]
},
"attributes":[
{
"assetTypeId":"4ea6e8d119d-5b51",
"dataType":"Applicable only when 'type' is sensor. If type is sensor, then dataType must be specified.One of [STRING, NUMBER, BOOLEAN, INTEGER, DATETIME, URI, DATE].",
"deviceModel":"Applicable only when 'type' is device. If type is device, then deviceModel must be specified.",
"id":"123257ca73a0-3bb5",
"instructions":"A human friendly instructions on how to fill given attribute",
"kind":"Type of the asset attribute. Following types would be supported &qot;string&qot;, &qot;number&qot;, &qot;boolean&qot;, &qot;date&qot;, &qot;binary&qot;, &qot;device&qot;, &qot;asset&qot;, &qot;sensor&qot;One of [STATIC, DYNAMIC, ASSET, DEVICE, BINARY, ALERT, SENSOR, CONTROL].",
"name":"Name of the asset attribute e.g. &qot;name&qot;, &qot;manufacturer&qot;, &qot;brand&qot;, &qot;status&qot; etc. Name should be unique across asset attributes of a given type",
"partitioningByAllowedValues":false,
"properties":{
"properties_key1":"properties_value1",
"properties_key2":"properties_value2",
"properties_key3":"properties_value3"
},
"required":false,
"samplingPolicy":{
"interval":12345,
"type":"One of [NONE, LAST_VALUE, MINIMUM_VALUE, MAXIMUM_VALUE, MEAN_VALUE, THRESHOLD_VIOLATIONS]."
},
"sensorAttributes":[
{
"field":"The name of the field.",
"format":"The format asssociated with this attribute.",
"id":"113362fef38-94e",
"name":"The name of this attribute."
}
],
"simulation":{
"extensions":{
"extensions_key1":"extensions_value1",
"extensions_key2":"extensions_value2",
"extensions_key3":"extensions_value3"
},
"type":"Type of simulationOne of [PATTERN, FORMULA, CSV_REFERENCE]."
},
"static":false,
"type":"Type of the asset attribute. Following types would be supported &qot;string&qot;, &qot;number&qot;, &qot;boolean&qot;, &qot;date&qot;, &qot;binary&qot;, &qot;device&qot;, &qot;asset&qot;, &qot;sensor&qot;",
"unique":false,
"valuePropagation":{
"assetAttributeId":"2982d26662f-6313",
"reverseDirection":false,
"sourceAttributeId":"75ae1c8c7af9-1cd9"
}
}
],
"classes":[
"classes_1",
"classes_2",
"classes_3"
],
"description":"Description of the asset type provided by the user",
"icon":{
"links":[
{
"href":"https://iotserver/assetMonitoring/clientapi/version/resource/path",
"rel":"self"
},
{
"href":"https://iotserver/assetMonitoring/clientapi/version/resource/path",
"rel":"canonical"
}
]
},
"id":"66b810ba609f-40e1",
"lastModifiedBy":"Name of the user who last modified the definition of asset type.",
"lastModifiedTime":1469184297746,
"lastModifiedTimeAsString":1469184297746,
"maintenanceActivities":[
{
"description":"Description of the asset maintenance activity",
"name":"Name of the asset maintenance activity"
}
],
"metrics":[
{
"description":"Description of the metric. This can be used in the UI.",
"displayName":"User-friendly name of the metric to be used in UI",
"frequency":"How frequently this metric would be computedOne of [HOURLY, DAILY, WEEKLY, MONTHLY].",
"name":"Name of the metric. e.g. mileage, utilization, totalUsage, efficiency, lifespan, currentLocation, energySavings, presenceInPlace, etc. Name of the metric should be unique across all the metrics defined for an asset type",
"parameters":{
"parameters_key1":"parameters_value1",
"parameters_key2":"parameters_value2",
"parameters_key3":"parameters_value3"
},
"type":"One of [STRING, NUMBER, BOOLEAN, PERCENTAGE]."
}
],
"name":"Unique mutable name of the asset type object. If name is not specified during asset creation, it will be set to the same value as generated uniqu asset type ID",
"organizationId":"480040b67f91-4d90"
}
Complete cURL Example
The following example shows a complete cURL command that you can use to perform the described operation:
curl -X POST
-u <username>:<password>
-H 'Accept: application/json'
-d '{"attributes":[{"assetTypeId":"affc5f42d6-2400","dataType":"Applicable only when 'type' is sensor. If type is sensor, then dataType must be specified.One of [STRING, NUMBER, BOOLEAN, INTEGER, DATETIME, URI, DATE].","deviceModel":"Applicable only when 'type' is device. If type is device, then deviceModel must be specified.","instructions":"A human friendly instructions on how to fill given attribute","kind":"Type of the asset attribute. Following types would be supported &qot;string&qot;, &qot;number&qot;, &qot;boolean&qot;, &qot;date&qot;, &qot;binary&qot;, &qot;device&qot;, &qot;asset&qot;, &qot;sensor&qot;One of [STATIC, DYNAMIC, ASSET, DEVICE, BINARY, ALERT, SENSOR, CONTROL].","legacySensorAttribute":false,"name":"Name of the asset attribute e.g. &qot;name&qot;, &qot;manufacturer&qot;, &qot;brand&qot;, &qot;status&qot; etc. Name should be unique across asset attributes of a given type","partitioningByAllowedValues":false,"properties":{"properties_key1":"properties_value1","properties_key2":"properties_value2","properties_key3":"properties_value3"},"referencedEntityIdentifier":"Property description was not set","required":false,"samplingPolicy":{"entityTypeId":"11b4306a3acc-5c9d","id":"64661d703dc8-54f"},"sensorAttributes":[{"field":"The name of the field.","fieldType":"The type of the field.","format":"The format asssociated with this attribute.","id":"1f826753f4f-10a5","keepHistory":false,"name":"The name of this attribute."}],"simulation":{"actionStepSimulationDuration":["actionStepSimulationDuration_1","actionStepSimulationDuration_2","actionStepSimulationDuration_3"],"anomalyDuration":["anomalyDuration_1","anomalyDuration_2","anomalyDuration_3"],"extensions":{"extensions_key1":"extensions_value1","extensions_key2":"extensions_value2","extensions_key3":"extensions_value3"},"frequency":["frequency_1","frequency_2","frequency_3"],"interval":["interval_1","interval_2","interval_3"],"intervalRequired":false,"probability":["probability_1","probability_2","probability_3"],"type":"Type of simulationOne of [PATTERN, FORMULA, CSV_REFERENCE]."},"static":false,"type":"Type of the asset attribute. Following types would be supported &qot;string&qot;, &qot;number&qot;, &qot;boolean&qot;, &qot;date&qot;, &qot;binary&qot;, &qot;device&qot;, &qot;asset&qot;, &qot;sensor&qot;","unique":false,"valuePropagation":{"assetAttributeId":"1c733cf2398c-44e3","reverseDirection":false,"sourceAttributeId":"458126353bb7-2ce3"}}],"description":"Description of the asset type provided by the user","lastModifiedBy":"Name of the user who last modified the definition of asset type.","maintenanceActivities":[{"description":"Description of the asset maintenance activity","id":"174f18e3ceb-355a","name":"Name of the asset maintenance activity"}],"metrics":[{"description":"Description of the metric. This can be used in the UI.","displayName":"User-friendly name of the metric to be used in UI","frequency":"How frequently this metric would be computedOne of [HOURLY, DAILY, WEEKLY, MONTHLY].","id":"6b6124d32bde-34bc","name":"Name of the metric. e.g. mileage, utilization, totalUsage, efficiency, lifespan, currentLocation, energySavings, presenceInPlace, etc. Name of the metric should be unique across all the metrics defined for an asset type","parameters":{"parameters_key1":"parameters_value1","parameters_key2":"parameters_value2","parameters_key3":"parameters_value3"},"type":"One of [STRING, NUMBER, BOOLEAN, PERCENTAGE]."}],"name":"Unique mutable name of the asset type object. If name is not specified during asset creation, it will be set to the same value as generated uniqu asset type ID","organizationId":"3a407a99a62-2f8e"}'
https://iotserver/assetMonitoring/clientapi/v2/assetTypes
Note that in the request,
https://iotserver
will be replaced by the name and port of your assigned IoT Cloud Service instance. The format of the Cloud Service instance is
https://myinstance-myidentitydomain.iot.us.oraclecloud.com
and the default port is 443.