MaterialRecvRpts - 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

MaterialRecvRpts - All material receiving reports of a project are returned

URL Format

https://{host}/Smat/V1/Projects(':project')/Disciplines(':discipline')/Nls(':language')/MaterialRecvRpts

Specify values for ProjId, DisciplineCode and NlsDescription parameters in the URL.

Use the following read-only APIs to get the available values for each parameter.

/Projects,

/projects(':project')/Disciplines,

/projects(':project')/Disciplines(':discipline')/Nls

URL Parameter

:project, :discipline, :language

Data Parameter

None

Method

GET

Required Privilege

API_READONLY

Success Response

Response Metadata:

<EntityType Name="MatlRecvRpt">

<Key>

<PropertyRef Name="MrrId"/>

</Key>

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

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

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

<Property Name="RevisionId" Type="Edm.Int16"/>

<Property Name="DpId" Type="Edm.Int64"/>

<Property Name="MrrCreateDate" Type="Edm.DateTimeOffset"/>

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

<Property Name="WhId" Type="Edm.Int64"/>

<Property Name="LocId" Type="Edm.Int64"/>

<Property Name="SmstId" Type="Edm.Int64"/>

<Property Name="SgId" Type="Edm.Int64"/>

<Property Name="PohId" Type="Edm.Int64"/>

<Property Name="PostedDate" Type="Edm.DateTimeOffset"/>

<Property Name="MatlRecvDate" Type="Edm.DateTimeOffset"/>

<Property Name="BnlId" Type="Edm.Int64"/>

</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('CD')/Disciplines('PIPING')/Nls('English')/MaterialRecvRpts",

"value": [

{

MrrId: 20008,

ProjId: "CD",

MrrNumber: "PIPING0001",

RevisionId: 0,

DpId: 5020,

MrrCreateDate: "2009-12-08T00:00:00+05:30",

RecvType: "O",

WhId: 6661,

LocId: 5920,

SmstId: 5581,

SgId: null,

PohId: null,

PostedDate: "2009-12-08T12:48:19+05:30",

MatlRecvDate: "2009-12-08T00:00:00+05:30",

BnlId: null

},

{

MrrId: 20388,

ProjId: "CD",

MrrNumber: "PIPING00002",

RevisionId: 0,

DpId: 5020,

MrrCreateDate: "2010-01-18T00:00:00+05:30",

RecvType: "O",

WhId: 6661,

LocId: 5920,

SmstId: 5581,

SgId: null,

PohId: 30142,

PostedDate: "2015-06-16T14:27:49+05:30",

MatlRecvDate: "2010-01-18T00:00:00+05:30",

BnlId: null

}

}

]}

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