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": "681e2ac7-bf4a-4a3b-81a7-cb80b52dfe68",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-02-26T00:40:41.1576307+00:00",
"End": "2026-02-26T00:40:41.1576307+00:00",
"Rate": 6.0,
"RateTableId": "92badf9a-efaf-4a62-b0b3-72a113e6d5b0",
"Resources": [
{
"ResourceId": "07f408d0-3e93-4d93-bb40-345fd94bbbe3",
"Units": 2.0
},
{
"ResourceId": "07f408d0-3e93-4d93-bb40-345fd94bbbe3",
"Units": 2.0
}
]
},
{
"TaskId": "681e2ac7-bf4a-4a3b-81a7-cb80b52dfe68",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-02-26T00:40:41.1576307+00:00",
"End": "2026-02-26T00:40:41.1576307+00:00",
"Rate": 6.0,
"RateTableId": "92badf9a-efaf-4a62-b0b3-72a113e6d5b0",
"Resources": [
{
"ResourceId": "07f408d0-3e93-4d93-bb40-345fd94bbbe3",
"Units": 2.0
},
{
"ResourceId": "07f408d0-3e93-4d93-bb40-345fd94bbbe3",
"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": "658ab490-0c30-4515-ba1d-9975cd478d61",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "658ab490-0c30-4515-ba1d-9975cd478d61",
"Cost": 2.0,
"Revenue": 3.0
}
]