AttrValues - Intergraph Smart Materials - Version 2017 (2.0) - Help - Hexagon PPM

Intergraph Smart Materials Web API Help 2017 (2.0)

PPMProduct
Intergraph Smart Materials
PPMCategory_custom
Help

Name and Description

AttrValues - All attribute values are returned

URL Format

https://{host}/Smat/V1/Projects(‘:project’)/Disciplines(‘:discipline’)/Nls(‘:language’)/AttrValues

URL Parameter

:project, :discipline, :language

Data Parameter

None

Method

GET

Required Privilege

API_READONLY

Success Response

Response Metadata:

<EntityType Name="AttrValue">

<Key>

<PropertyRef Name="AttrId"/>

</Key>

<Property Name="AttrId" Type="Edm.Int64" Nullable="false"/>

<Property Name="AttrSeq" Type="Edm.Int32"/>

<Property Name="AttrValue" Type="Edm.String"/>

<Property Name="ShortDesc" Type="Edm.String"/>

</EntityType>

HTTP status code sent back to client on the API execution success: 
Code: 200 OK

Content:

{

"@odata.context": "https://{host}/Smat/V1/$metadata#Projects('{project}')/Disciplines('{discipline}')/Nls('{nls}')/AttrValues",

"value": [

{

AttrId: 5329,

AttrSeq: 1,

AttrValue: "AS",

ShortDesc:"{,Alloy steel}{AS}{Alloy steel}{alloy%steel}{Alloy st.}"

},

{

AttrId: 5329,

AttrSeq: 2,

AttrValue: "BZ",

ShortDesc: "{, Bronze alloy}{BZ}{Bronze alloy}{BA}{bronze%alloy}{bz%alloy}{BR. alloy}"

}]

}

Error Response

This API may fail with the following error messages: 
Error Code: 401 Unauthorized 
Content:

{

"error": {

"code": "",

"message": "Authorization has been denied for this request." }

}

Notes