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": "154e2e7d-8c2b-4dcf-bd96-7697aa25aa1e",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-10-24T04:58:13.6340566+00:00",
"End": "2026-10-24T04:58:13.6340566+00:00",
"Rate": 6.0,
"RateTableId": "3cfb55e3-f4f6-45fb-bb5e-a01e529a19e3",
"Resources": [
{
"ResourceId": "154f9a70-7ce4-44fe-93a8-954dc4c85bdb",
"Units": 2.0
},
{
"ResourceId": "154f9a70-7ce4-44fe-93a8-954dc4c85bdb",
"Units": 2.0
}
]
},
{
"TaskId": "154e2e7d-8c2b-4dcf-bd96-7697aa25aa1e",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-10-24T04:58:13.6340566+00:00",
"End": "2026-10-24T04:58:13.6340566+00:00",
"Rate": 6.0,
"RateTableId": "3cfb55e3-f4f6-45fb-bb5e-a01e529a19e3",
"Resources": [
{
"ResourceId": "154f9a70-7ce4-44fe-93a8-954dc4c85bdb",
"Units": 2.0
},
{
"ResourceId": "154f9a70-7ce4-44fe-93a8-954dc4c85bdb",
"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": "ab9f8a0f-256b-4606-b029-9ebe38580ba7",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "ab9f8a0f-256b-4606-b029-9ebe38580ba7",
"Cost": 2.0,
"Revenue": 3.0
}
]