assetgroups/import

Import list of asset groups

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 groups is unchanged
If either of the above conditions are not met, the full set of validators will rerun.
  1. 1New asset groups will be added and existing asset groups will be updated.
  2. 2 Asset groups cannot be mass deleted using this endpoint. To remove an asset group, call the delete endpoint
  3. 3 Name is a mandatory field. It cannot be blank.

Request Information

URI Parameters

None.

Body Parameters

Asset groups to import

ImportAssetGroupsDto
NameDescriptionTypeAdditional information
assetGroups

Assets groups to import

Collection of ImportAssetGroupDto

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

Result containing list of id's and associated names of imported asset groups

ResultOfAssetTypeListingResponseDto[]

NameDescriptionTypeAdditional information
data

Collection of AssetTypeListingResponseDto

None.

wasSuccessful

boolean

None.

errors

Collection of string

None.

Error Responses

HTTP Status CodeError MessageTypeAdditional Information
400 - BadRequest

ValidationErrorDto<UpdateAssetGroupDto>

None.
400 - BadRequest The request is invalid

ModelStateDictionary

None.