Create Material Receiving Report header description - 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 creates a description for an existing Material Receiving Report (MRR) header in Smart Materials.

Required Privilege: API_CREATE_MRRHEADER

Headers

Header Name

Description

Required

Values

Authorization

Access token

Required

Bearer <access_token>

Content-Type

Request type format

Required

application/JSON

Body

URL Format: POST https://{host}/Smat/V1/Projects(':project')/Disciplines(':discipline')/Nls(':language')/ ReceivingHeaders({key})/Com.Ingr.Smat.V1.ReceivingDescription/

Specify values for 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 Receiving header Id.

Element

Description

Type

Required

Notes

NlsId

Unique ID of the national language

Decimal

Required

To view available languages, use:

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

ShortDesc

Language dependent short description for the MRR rule

String

Required

Maximum allowed length is 20.

Description

Language dependent description for the MRR rule

String

Required

Maximum allowed length is 60.

Sample Code

POST https://localhost:53965/SMAT/V1//Projects('AB')/Disciplines('PIPING')/Nls('English')/ReceivingHeaders(3465)/Com.ingr.Smat.V1.ReceivingDescription/

{

"nlsDescription":{

"NlsId":1,

"ShortDesc":"short description",

"Description":"This is a long description"

}}

Success Response

Status: 200 OK

{

"@odata.context": "https://{host}/Smat/V1/$metadata#Edm.Int64",

"value":0

}