assets
Add a single asset.
Request Information
URI Parameters
None.
Body Parameters
Create an asset
AddAssetDtoName | Description | Type | Additional information |
---|---|---|---|
name |
Name |
string |
Required Max length: 255 |
type | string |
Required |
|
referenceNumber |
Reference number |
string |
Max length: 255 |
identifier |
Unique identifier |
string |
Required Max length: 255 |
assignedToEmailAddress |
Email of the employee the asset is assigned to. Employee must be able to log in and have a site membership at or above the site this asset is at. |
string |
None. |
attachment |
Attachment details |
UploadResultDTO |
None. |
status |
Status |
AssetStatusDto |
Required |
siteId |
The id of the site where the asset resides |
integer |
Required |
location | string |
Max length: 255 |
|
attributes |
A collection of attributes of the asset |
Collection of AddAssetProfileAttributeDto |
None. |
Response Information
Standard Responses
Result that contains the asset identifier, and, if failed, error messages
ResultOfAssetUpdateResponseDto
Name | Description | Type | Additional information |
---|---|---|---|
data | AssetUpdateResponseDto |
None. |
|
wasSuccessful | boolean |
None. |
|
errors | Collection of string |
None. |
Error Responses
HTTP Status Code | Error Message | Type | Additional Information |
---|---|---|---|
400 - BadRequest |
Result<AssetUpdateResponseDto> |
None. |