This API retrieves the list nodes of a project from Smart Materials. You can either retrieve a single list node by using list node ID or all the list nodes of a project.
Required Privilege: API_READONLY
Headers
Header Name |
Description |
Required |
Values |
---|---|---|---|
Authorization |
Access token |
Required |
Bearer <access_token> |
Content-Type |
Request type format |
Required |
application/JSON |
Body
URL Format: GET https://{host}/Smat/V1/Projects(‘:project’)/Disciplines(‘:discipline’)/Nls(‘:language’)/Listnodes({key})
Specify values for the project, discipline, language, and key parameter in the URL. The project, discipline, and language together define the project environment and the key parameter defines the list node Id (LnId).
To retrieve all the list nodes of a project, use the following URL:
GET https://{host}/Smat/V1/Projects(‘:project’)/Disciplines(‘:discipline’)/Nls(‘:language’)/Listnodes
Sample Code
GET https://localhost:59387/smat/v1/Projects('RS')/Disciplines('PIPING')/Nls('English')/ListNodes(5199)?$expand=NodeAttributes
Success Response
Status: 200 OK
Content:
{
"@odata.context": "https://localhost:59387/SMAT/V1/$metadata#Projects('RS')/Disciplines('PIPING')/Nls('English')/Listnodes/$entity",
"LnId": 5199,
"LsId": 5021,
"ProjId": "RS",
"DpId": 500013,
"LnCode": "MECHANICAL",
"ParentLnId": null,
"GeneratedName": "Name: ,-",
"LoadInd": "Y",
"LockInd": "N",
"SiteStatId": null,
"EstShortNodeInd": "N",
"BOMPath": "/MECHANICAL",
"NodeAttributes": [
{
"AttrId": 501195,
"AttrCode": "BDIA",
"AttrValue": null
},
{
"AttrId": 507963,
"AttrCode": "ER RGS RG",
"AttrValue": null
},
{
"AttrId": 10000009411,
"AttrCode": "LOV_DATE",
"AttrValue": null
}
]
}
Element |
Description |
Type |
---|---|---|
LnId |
Unique ID of the retrieved list nodes |
Integer |
LsId |
Unique ID of the list structure |
Integer |
ProjId |
Unique ID of the Project. Retrieved list nodes belong to this Project. |
String |
DpId |
Unique ID of the Discipline. Retrieved list nodes belong to this Discipline. |
Integer |
LnCode |
Name of the list node |
String |
ParentLnId |
Unique ID of the parent list node |
Integer |
GeneratedName |
Name of the retrieved list node generated from the user defined algorithm. |
String |
LoadInd |
String |
|
LockInd |
Available values are Y and N.
|
String |
SiteStatId |
Available values are Y and N.
|
Integer |
EstShortNodeInd |
String |
|
BOMPath |
BOM path of the list node |
String |
NodeAttributes |
Details of the attribute attached to a node |
Collection |
-
Node Attributes (NodeAttributes)
Element
Description
Type
AttrId
Unique ID of the node attribute
Integer
AttrCode
Unique code or name of the node attribute
String
AttrValue
Value of the node attribute
String