POST api/Projects/{projectId}/Forecast
List of forecast subcontracts of project End point used also for Datalake
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| projectId | integer |
Required |
Body Parameters
ForecastFilter| Name | Description | Type | Additional information |
|---|---|---|---|
| ProjectId | integer |
None. |
|
| SubcontractCode | string |
None. |
|
| SubcontractTitle | string |
None. |
|
| Amount | Collection of decimal number |
None. |
|
| Currency | string |
None. |
|
| ForecastDate | Collection of date |
None. |
|
| Page | Page |
None. |
|
| Orders | Collection of Order |
None. |
Request Formats
application/json, text/json
Sample:
{
"projectId": 1,
"subcontractCode": "sample string 2",
"subcontractTitle": "sample string 3",
"amount": [
1.0,
1.0
],
"currency": "sample string 4",
"forecastDate": [
"2026-05-09T14:05:36.1421974+02:00",
"2026-05-09T14:05:36.1421974+02:00"
],
"page": {
"number": 1,
"size": 2,
"skip": 0
},
"orders": [
{
"name": "sample string 1",
"descending": true
},
{
"name": "sample string 1",
"descending": true
}
]
}
text/html
Sample:
{"projectId":1,"subcontractCode":"sample string 2","subcontractTitle":"sample string 3","amount":[1.0,1.0],"currency":"sample string 4","forecastDate":["2026-05-09T14:05:36.1421974+02:00","2026-05-09T14:05:36.1421974+02:00"],"page":{"number":1,"size":2,"skip":0},"orders":[{"name":"sample string 1","descending":true},{"name":"sample string 1","descending":true}]}
application/xml, text/xml
Sample:
<ForecastFilter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.ProjectAgg">
<Orders xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.Application.Base.SortAndPage.Entities">
<Order>
<Descending>true</Descending>
<Name>sample string 1</Name>
</Order>
<Order>
<Descending>true</Descending>
<Name>sample string 1</Name>
</Order>
</Orders>
<Page xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.Application.Base.SortAndPage.Entities">
<Number>1</Number>
<Size>2</Size>
</Page>
<Amount xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
<d2p1:decimal>1</d2p1:decimal>
<d2p1:decimal>1</d2p1:decimal>
</Amount>
<Currency>sample string 4</Currency>
<ForecastDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
<d2p1:dateTime>2026-05-09T14:05:36.1421974+02:00</d2p1:dateTime>
<d2p1:dateTime>2026-05-09T14:05:36.1421974+02:00</d2p1:dateTime>
</ForecastDate>
<ProjectId>1</ProjectId>
<SubcontractCode>sample string 2</SubcontractCode>
<SubcontractTitle>sample string 3</SubcontractTitle>
</ForecastFilter>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiDataResultOfIPagedListOfForecastByProjectDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | IPagedListOfForecastByProjectDto |
None. |
|
| Success | boolean |
None. |
|
| Message | string |
None. |
|
| Errors | Collection of CustomError |
None. |
|
| Warnings | Collection of string |
None. |
Response Formats
application/json, text/json, text/html
Sample:
Sample not available.