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": "47cb81e7-cbde-4a9a-a458-e8b562ad8b75",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-01-22T06:59:15.6606663+00:00",
"End": "2026-01-22T06:59:15.6606663+00:00",
"Rate": 6.0,
"RateTableId": "48e2aea9-2071-4d5d-949f-f37e48f22595",
"Resources": [
{
"ResourceId": "364385a0-72a2-4dd0-bea8-10e84043346e",
"Units": 2.0
},
{
"ResourceId": "364385a0-72a2-4dd0-bea8-10e84043346e",
"Units": 2.0
}
]
},
{
"TaskId": "47cb81e7-cbde-4a9a-a458-e8b562ad8b75",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-01-22T06:59:15.6606663+00:00",
"End": "2026-01-22T06:59:15.6606663+00:00",
"Rate": 6.0,
"RateTableId": "48e2aea9-2071-4d5d-949f-f37e48f22595",
"Resources": [
{
"ResourceId": "364385a0-72a2-4dd0-bea8-10e84043346e",
"Units": 2.0
},
{
"ResourceId": "364385a0-72a2-4dd0-bea8-10e84043346e",
"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": "e91c67f8-a606-49a9-a2b0-d6af91347d9f",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "e91c67f8-a606-49a9-a2b0-d6af91347d9f",
"Cost": 2.0,
"Revenue": 3.0
}
]