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": "37efee60-4c21-4f93-89e2-f7bffa341649",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-07-13T00:05:38.7030389+00:00",
"End": "2026-07-13T00:05:38.7030389+00:00",
"Rate": 6.0,
"RateTableId": "853c6ab5-787c-4d4f-a531-a964ba45ae15",
"Resources": [
{
"ResourceId": "21b3b671-7289-4533-a49c-0f64ad70f899",
"Units": 2.0
},
{
"ResourceId": "21b3b671-7289-4533-a49c-0f64ad70f899",
"Units": 2.0
}
]
},
{
"TaskId": "37efee60-4c21-4f93-89e2-f7bffa341649",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-07-13T00:05:38.7030389+00:00",
"End": "2026-07-13T00:05:38.7030389+00:00",
"Rate": 6.0,
"RateTableId": "853c6ab5-787c-4d4f-a531-a964ba45ae15",
"Resources": [
{
"ResourceId": "21b3b671-7289-4533-a49c-0f64ad70f899",
"Units": 2.0
},
{
"ResourceId": "21b3b671-7289-4533-a49c-0f64ad70f899",
"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": "747eb136-5904-4a60-885a-79b9c10c1377",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "747eb136-5904-4a60-885a-79b9c10c1377",
"Cost": 2.0,
"Revenue": 3.0
}
]