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": "2f02fa8b-1aa6-4a3a-954a-d5997acdd246",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-05-09T08:38:38.0379162+00:00",
"End": "2026-05-09T08:38:38.0379162+00:00",
"Rate": 6.0,
"RateTableId": "b9d0ff6a-1117-48a6-916f-fe3ac8278e3e",
"Resources": [
{
"ResourceId": "8ba2f23b-4aa7-4dcf-9171-a0e835c2f7e9",
"Units": 2.0
},
{
"ResourceId": "8ba2f23b-4aa7-4dcf-9171-a0e835c2f7e9",
"Units": 2.0
}
]
},
{
"TaskId": "2f02fa8b-1aa6-4a3a-954a-d5997acdd246",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-05-09T08:38:38.0379162+00:00",
"End": "2026-05-09T08:38:38.0379162+00:00",
"Rate": 6.0,
"RateTableId": "b9d0ff6a-1117-48a6-916f-fe3ac8278e3e",
"Resources": [
{
"ResourceId": "8ba2f23b-4aa7-4dcf-9171-a0e835c2f7e9",
"Units": 2.0
},
{
"ResourceId": "8ba2f23b-4aa7-4dcf-9171-a0e835c2f7e9",
"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": "b68cfda2-0981-4538-aaae-71632c0e4cd9",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "b68cfda2-0981-4538-aaae-71632c0e4cd9",
"Cost": 2.0,
"Revenue": 3.0
}
]