Create Forecast description - Intergraph Smart Materials - Version 2017 R2 (2.2) - Help - Hexagon

Intergraph Smart Materials Web API Help 2017 R2 (2.2)

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

This API creates a language dependent description of the Forecast header in Smart Materials.

Required Privilege: API_CREATE_FAHEADER

Header

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')/Forecasts({key})/Com.Ingr.Smat.V1.ForecastDescription

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 Forecast header Id (FahId).

Element

Description

Type

Required

Notes

NlsId

Unique ID of the national language

Decimal

Required

ShortDesc

Short description of the Forecast Run

String

Required

Either ShortDesc or Description is mandatory.

Description

Description of the Forecast Run

String

Required

Either ShortDesc or Description is mandatory.

Sample Code

POST https://{host}/Smat/V1/Projects('RS')/Disciplines('PIPING')/NLS('English')/Forecasts(5468)/Com.Ingr.Smat.V1.ForecastDescription

{

"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

}