assettypes/Import

Import asset types

If the validate endpoint was called first, setting the ValidationIdentifier to match the one returned by validations will enable bypassing running the same validations when calling the endpoint so long as the following conditions are met:

  • The validation call was completed less than 1 hour before this endpoint called.
  • The list of asset types is unchanged
If either of the above conditions are not met, the full set of validators will rerun.
  1. 1New asset types will be added and existing asset types will be updated.
  2. 2 Asset types cannot be mass deleted using this endpoint. To remove an asset type, call the delete endpoint
  3. 3 If an asset type is in use, all asset types must be present with the correct datatypes
  4. 4 The asset type's group must exist
  5. 5 There are no more than 20 attributes on each asset type
  6. 5 Name must be unique, including deleted asset types
  7. 5 If an id is specified, it must exist

Request Information

URI Parameters

None.

Body Parameters

Asset types to import

ImportAssetTypesDto
NameDescriptionTypeAdditional information
assetTypes

Asset types to import

Collection of ImportAssetTypeDto

Required

Max length: 1000

Min length: 1

validationIdentifier

Validation Identifier that was returned from a successful call to the validation endpoint

string

None.

Response Information

Standard Responses

ResultOfUpdateAssetTypeResponseDto[]

NameDescriptionTypeAdditional information
data

Collection of UpdateAssetTypeResponseDto

None.

wasSuccessful

boolean

None.

errors

Collection of string

None.

Error Responses

None.
HTTP Status CodeError MessageTypeAdditional Information