Disciplines - Intergraph Smart Materials - Version 2017 R1 (2.1) - Help - Hexagon

Intergraph Smart Materials Web API Help 2017 R1 (2.1)

Language
English
Product
Intergraph Smart Materials
Subproduct
Web API
Search by Category
Help
Version Smart Materials Web API
2017 R1 (2.1)

This API retrieves the Disciplines of a project from Smart Materials. You can either retrieve a single Discipline using Discipline Code or all the Disciplines of a project.

  • No privilege is required to access this API.

  • Disciplines that are assigned to the logged-in user in a project (project given in the URL) are retrieved.

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(':key')

Specify value for the project and key in the URL. The key parameter defines the Discipline code (DisciplineCode).

To retrieve all the Disciplines of a project, use the following URL:

GET https://{host}/Smat/V1/Projects(‘:project’)/Disciplines

Sample Code

GET https://{host}/Smat/V1/Projects(‘RS’)/Disciplines('PIPING')

Success Response

Status: 200 OK

Content:

{

"@odata.context": "https://in-matapiapp.ingrnet.com/WebApi_RC0/SMAT/V1/$metadata#Projects('RS')/Disciplines",

"value": [

{

"DisciplineId":5020,

"DisciplineCode":"PIPING",

"ProjId":"RS"

}]

}

Element

Description

Type

DisciplineId

Unique ID of the discipline

Integer

DisciplineCode

Name of the discipline

String

ProjId

Unique ID of the Project. Retrieved discipline belongs to this Project.

String