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": "241b267b-ad23-4c46-ac46-68f199a6b498",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-07-14T00:55:33.7592414+00:00",
"End": "2026-07-14T00:55:33.7592414+00:00",
"Rate": 6.0,
"RateTableId": "c11a049f-7f27-4a98-bd65-b47736cfa023",
"Resources": [
{
"ResourceId": "f99f04b7-99f4-46de-aaab-4edfa3a6ed9a",
"Units": 2.0
},
{
"ResourceId": "f99f04b7-99f4-46de-aaab-4edfa3a6ed9a",
"Units": 2.0
}
]
},
{
"TaskId": "241b267b-ad23-4c46-ac46-68f199a6b498",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-07-14T00:55:33.7592414+00:00",
"End": "2026-07-14T00:55:33.7592414+00:00",
"Rate": 6.0,
"RateTableId": "c11a049f-7f27-4a98-bd65-b47736cfa023",
"Resources": [
{
"ResourceId": "f99f04b7-99f4-46de-aaab-4edfa3a6ed9a",
"Units": 2.0
},
{
"ResourceId": "f99f04b7-99f4-46de-aaab-4edfa3a6ed9a",
"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": "28b77a25-c4bf-4386-8328-586e333af3eb",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "28b77a25-c4bf-4386-8328-586e333af3eb",
"Cost": 2.0,
"Revenue": 3.0
}
]