POST api/workplan/{Id}/revenue
Calculate tasks cost and revenue (External Use)
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
Required |
Body Parameters
CostRevenueRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Tasks | Collection of CostRevenueTask |
None. |
Request Formats
application/json, text/json
Sample:
{
"Tasks": [
{
"TaskId": "f3174875-b3e7-42a4-a446-01a25dc420c5",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-01-26T22:59:15.6410455+00:00",
"End": "2026-01-26T22:59:15.6410455+00:00",
"Rate": 6.0,
"RateTableId": "0ba0ed16-4237-4876-821c-63834524a439",
"Resources": [
{
"ResourceId": "9478f5e5-ad1f-424c-8ff9-8b14b1956176",
"Units": 2.0
},
{
"ResourceId": "9478f5e5-ad1f-424c-8ff9-8b14b1956176",
"Units": 2.0
}
]
},
{
"TaskId": "f3174875-b3e7-42a4-a446-01a25dc420c5",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-01-26T22:59:15.6410455+00:00",
"End": "2026-01-26T22:59:15.6410455+00:00",
"Rate": 6.0,
"RateTableId": "0ba0ed16-4237-4876-821c-63834524a439",
"Resources": [
{
"ResourceId": "9478f5e5-ad1f-424c-8ff9-8b14b1956176",
"Units": 2.0
},
{
"ResourceId": "9478f5e5-ad1f-424c-8ff9-8b14b1956176",
"Units": 2.0
}
]
}
]
}
Response Information
Resource Description
Collection of CostRevenueResult| Name | Description | Type | Additional information |
|---|---|---|---|
| TaskId | globally unique identifier |
None. |
|
| Cost | decimal number |
None. |
|
| Revenue | decimal number |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"TaskId": "3026e549-b5a4-4753-881c-0651b482430b",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "3026e549-b5a4-4753-881c-0651b482430b",
"Cost": 2.0,
"Revenue": 3.0
}
]