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": "c260bbd5-bc6d-4f0a-b7f8-3b232f19fefc",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-09-03T19:17:43.9228913+00:00",
"End": "2026-09-03T19:17:43.9228913+00:00",
"Rate": 6.0,
"RateTableId": "f4ec7bb0-82ea-4639-8e20-643a9b1ec6f6",
"Resources": [
{
"ResourceId": "21b17963-1b56-4f7f-8609-51560e9c6ca0",
"Units": 2.0
},
{
"ResourceId": "21b17963-1b56-4f7f-8609-51560e9c6ca0",
"Units": 2.0
}
]
},
{
"TaskId": "c260bbd5-bc6d-4f0a-b7f8-3b232f19fefc",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-09-03T19:17:43.9228913+00:00",
"End": "2026-09-03T19:17:43.9228913+00:00",
"Rate": 6.0,
"RateTableId": "f4ec7bb0-82ea-4639-8e20-643a9b1ec6f6",
"Resources": [
{
"ResourceId": "21b17963-1b56-4f7f-8609-51560e9c6ca0",
"Units": 2.0
},
{
"ResourceId": "21b17963-1b56-4f7f-8609-51560e9c6ca0",
"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": "f5d50c71-dc65-48d1-b055-dbb72826b8f4",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "f5d50c71-dc65-48d1-b055-dbb72826b8f4",
"Cost": 2.0,
"Revenue": 3.0
}
]