POST apioauth/v4/asset?groupId={groupId}

Create a single new asset

Request Information

URI Parameters

NameDescriptionTypeAdditional information
groupId

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

integer

Required

Body Parameters

The OAuthCreateEditAssetRequestModel

OAuthCreateEditAssetRequestModel
NameDescriptionTypeAdditional information
TagId

The identifier of the asset

string

None.

AssetType

The type of the asset

MobileAssetType

None.

AssetName

The asset name

string

None.

Request Formats

application/json, text/json

Sample:
{
  "TagId": "sample string 1",
  "AssetType": 1,
  "AssetName": "sample string 2"
}

application/xml, text/xml

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

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

OAuthCreateAssetResponseModel

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
}

application/xml, text/xml

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