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": "39c8845e-fc35-4fcf-89ff-55c7316155ce",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-07-08T19:41:17.3379044+00:00",
"End": "2026-07-08T19:41:17.3379044+00:00",
"Rate": 6.0,
"RateTableId": "040868ef-b003-432c-b506-246a356ee5f1",
"Resources": [
{
"ResourceId": "3cc55b9c-31a3-43c4-aab5-5710adbe8b26",
"Units": 2.0
},
{
"ResourceId": "3cc55b9c-31a3-43c4-aab5-5710adbe8b26",
"Units": 2.0
}
]
},
{
"TaskId": "39c8845e-fc35-4fcf-89ff-55c7316155ce",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-07-08T19:41:17.3379044+00:00",
"End": "2026-07-08T19:41:17.3379044+00:00",
"Rate": 6.0,
"RateTableId": "040868ef-b003-432c-b506-246a356ee5f1",
"Resources": [
{
"ResourceId": "3cc55b9c-31a3-43c4-aab5-5710adbe8b26",
"Units": 2.0
},
{
"ResourceId": "3cc55b9c-31a3-43c4-aab5-5710adbe8b26",
"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": "ba0837d5-b20d-4a21-b56c-61582d778c14",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "ba0837d5-b20d-4a21-b56c-61582d778c14",
"Cost": 2.0,
"Revenue": 3.0
}
]