POST apioauth/v4/asset

Create multiple new assets

Request Information

URI Parameters

None.

Body Parameters

The OAuthCreateMultipleAssetRequestModel

OAuthCreateMultipleAssetRequestModel
NameDescriptionTypeAdditional information
Assets

A list of assets to create

Collection of OAuthCreateEditAssetRequestModel

None.

GroupId

The group id to put the assets in, set to 0 if you don't want them adding into a group

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Assets": [
    {
      "TagId": "sample string 1",
      "AssetType": 1,
      "AssetName": "sample string 2"
    },
    {
      "TagId": "sample string 1",
      "AssetType": 1,
      "AssetName": "sample string 2"
    }
  ],
  "GroupId": 1
}

application/xml, text/xml

Sample:
<OAuthCreateMultipleAssetRequestModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Assets>
    <OAuthCreateEditAssetRequestModel>
      <TagId>sample string 1</TagId>
      <AssetType>Driver</AssetType>
      <AssetName>sample string 2</AssetName>
    </OAuthCreateEditAssetRequestModel>
    <OAuthCreateEditAssetRequestModel>
      <TagId>sample string 1</TagId>
      <AssetType>Driver</AssetType>
      <AssetName>sample string 2</AssetName>
    </OAuthCreateEditAssetRequestModel>
  </Assets>
  <GroupId>1</GroupId>
</OAuthCreateMultipleAssetRequestModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

A list of OAuthAssetResponseModel

Collection of OAuthAssetResponseModel
NameDescriptionTypeAdditional information
TagId

The asst tag id

string

None.

AssetName

The asset name

string

None.

AssetType

The type of the asset

MobileAssetType

None.

AssetId

The unique id of the asset generated by the system

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "TagId": "sample string 1",
    "AssetName": "sample string 2",
    "AssetType": 1,
    "AssetId": 3
  },
  {
    "TagId": "sample string 1",
    "AssetName": "sample string 2",
    "AssetType": 1,
    "AssetId": 3
  }
]

application/xml, text/xml

Sample:
<ArrayOfOAuthAssetResponseModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <OAuthAssetResponseModel>
    <TagId>sample string 1</TagId>
    <AssetName>sample string 2</AssetName>
    <AssetType>Driver</AssetType>
    <AssetId>3</AssetId>
  </OAuthAssetResponseModel>
  <OAuthAssetResponseModel>
    <TagId>sample string 1</TagId>
    <AssetName>sample string 2</AssetName>
    <AssetType>Driver</AssetType>
    <AssetId>3</AssetId>
  </OAuthAssetResponseModel>
</ArrayOfOAuthAssetResponseModel>