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": "7f9c29b1-6534-41a1-b31d-f7ee14cb1776",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-04-17T08:20:23.6802477+00:00",
"End": "2026-04-17T08:20:23.6802477+00:00",
"Rate": 6.0,
"RateTableId": "10069292-7295-4be5-a102-8d937dcb2202",
"Resources": [
{
"ResourceId": "9f079ab8-c285-44f6-bf78-558e3877bcb3",
"Units": 2.0
},
{
"ResourceId": "9f079ab8-c285-44f6-bf78-558e3877bcb3",
"Units": 2.0
}
]
},
{
"TaskId": "7f9c29b1-6534-41a1-b31d-f7ee14cb1776",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-04-17T08:20:23.6802477+00:00",
"End": "2026-04-17T08:20:23.6802477+00:00",
"Rate": 6.0,
"RateTableId": "10069292-7295-4be5-a102-8d937dcb2202",
"Resources": [
{
"ResourceId": "9f079ab8-c285-44f6-bf78-558e3877bcb3",
"Units": 2.0
},
{
"ResourceId": "9f079ab8-c285-44f6-bf78-558e3877bcb3",
"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": "ff203cf9-1566-4254-82a4-b2e0d800dd98",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "ff203cf9-1566-4254-82a4-b2e0d800dd98",
"Cost": 2.0,
"Revenue": 3.0
}
]