Asset Attributes

Quick Navigation

GET Assets/{assetID}/Attributes

Returns a list of attributes by Asset ID.

Asset Management (Read), Attribute Management (Read).

assetID: ID of the asset.

None.

Content-Type: application/json

[
    {
        AttributeID : int, AttributeTypeID : int,
        ParentAttributeID : int, // can be null
        ShortName : string,
        LongName : string,
        Description : string,
        ValueInt : int, // can be null
        IsReadOnly: bool
    },
    …
]

200 – Request successful. Attributes associated with the asset in the response body.

For more information, please see Common Response Codes.

POST Assets/{assetID}/Attributes/{attributeID}

Assigns an attribute to an asset.

Asset Management (Read/Write), Attribute Management (Read/Write).

  • assetID: ID of the asset.
  • attributeID: ID of the attribute Request Body.

Content-Type: application/json

{
    AttributeID : int, AttributeTypeID : int,
    ParentAttributeID : int, // can be null
    ShortName : string,
    LongName : string,
    Description : string,
    ValueInt : int, // can be null
    IsReadOnly: bool,
}

201 – Request successful. Attributes in the response body.

For more information, please see Common Response Codes.

DELETE Assets/{assetID}/Attributes

Deletes all asset attributes by asset ID.

Asset Management (Read/Write), Attribute Management (Read/Write).

assetID: ID of the asset.

None.

None.

200 – Request successful.

For more information, please see Common Response Codes.

DELETE Assets/{assetID}/Attributes/{attributeID}

Deletes an asset attribute by asset ID and attribute ID.

  • Asset Management (Read/Write).
  • Attribute Management (Read/Write).

assetID: ID of the asset attributeID and ID of the attribute.

None.

None.

200 – Request successful.

For more information, please see Common Response Codes.