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": "195cd05f-e909-4540-82e2-b744b8ea88d2",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-08-28T16:10:32.8324411+00:00",
"End": "2026-08-28T16:10:32.8324411+00:00",
"Rate": 6.0,
"RateTableId": "d190564b-f3a2-48fb-9df6-7456547ed43f",
"Resources": [
{
"ResourceId": "5e74f15e-6c79-4489-b050-f154c2909506",
"Units": 2.0
},
{
"ResourceId": "5e74f15e-6c79-4489-b050-f154c2909506",
"Units": 2.0
}
]
},
{
"TaskId": "195cd05f-e909-4540-82e2-b744b8ea88d2",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-08-28T16:10:32.8324411+00:00",
"End": "2026-08-28T16:10:32.8324411+00:00",
"Rate": 6.0,
"RateTableId": "d190564b-f3a2-48fb-9df6-7456547ed43f",
"Resources": [
{
"ResourceId": "5e74f15e-6c79-4489-b050-f154c2909506",
"Units": 2.0
},
{
"ResourceId": "5e74f15e-6c79-4489-b050-f154c2909506",
"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": "bef338cc-6547-46a3-9fc6-eeb296d611b4",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "bef338cc-6547-46a3-9fc6-eeb296d611b4",
"Cost": 2.0,
"Revenue": 3.0
}
]