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": "bb9049ee-6433-48c2-9ec3-0d8b42887244",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-04-15T06:17:10.5984826+00:00",
"End": "2026-04-15T06:17:10.5984826+00:00",
"Rate": 6.0,
"RateTableId": "e6564906-1dc5-4296-893c-f36a1b37841e",
"Resources": [
{
"ResourceId": "29a769bd-6065-40fd-a1f6-efec279e7d0e",
"Units": 2.0
},
{
"ResourceId": "29a769bd-6065-40fd-a1f6-efec279e7d0e",
"Units": 2.0
}
]
},
{
"TaskId": "bb9049ee-6433-48c2-9ec3-0d8b42887244",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-04-15T06:17:10.5984826+00:00",
"End": "2026-04-15T06:17:10.5984826+00:00",
"Rate": 6.0,
"RateTableId": "e6564906-1dc5-4296-893c-f36a1b37841e",
"Resources": [
{
"ResourceId": "29a769bd-6065-40fd-a1f6-efec279e7d0e",
"Units": 2.0
},
{
"ResourceId": "29a769bd-6065-40fd-a1f6-efec279e7d0e",
"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": "4e36caf9-b053-4ced-b339-8209efd46f22",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "4e36caf9-b053-4ced-b339-8209efd46f22",
"Cost": 2.0,
"Revenue": 3.0
}
]