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": "0769b1c7-4349-44b6-9e1c-cbc4c558ff2c",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-01-06T05:37:29.1344623+00:00",
"End": "2026-01-06T05:37:29.1500912+00:00",
"Rate": 6.0,
"RateTableId": "5faf01af-6fe5-4a3e-86eb-268af0c3cd69",
"Resources": [
{
"ResourceId": "73be5027-0c51-4c31-8503-a0b308d777f3",
"Units": 2.0
},
{
"ResourceId": "73be5027-0c51-4c31-8503-a0b308d777f3",
"Units": 2.0
}
]
},
{
"TaskId": "0769b1c7-4349-44b6-9e1c-cbc4c558ff2c",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-01-06T05:37:29.1344623+00:00",
"End": "2026-01-06T05:37:29.1500912+00:00",
"Rate": 6.0,
"RateTableId": "5faf01af-6fe5-4a3e-86eb-268af0c3cd69",
"Resources": [
{
"ResourceId": "73be5027-0c51-4c31-8503-a0b308d777f3",
"Units": 2.0
},
{
"ResourceId": "73be5027-0c51-4c31-8503-a0b308d777f3",
"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": "d494f8be-50d2-4e6a-8fc9-491ec1bd53d6",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "d494f8be-50d2-4e6a-8fc9-491ec1bd53d6",
"Cost": 2.0,
"Revenue": 3.0
}
]