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": "782ccddc-a81c-4d2d-806b-b3be7efffebd",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-01-10T09:23:40.0297866+00:00",
"End": "2026-01-10T09:23:40.0297866+00:00",
"Rate": 6.0,
"RateTableId": "83adf460-da99-4a1e-a17b-12617a9d2eaa",
"Resources": [
{
"ResourceId": "b1858f2a-7ebb-4fc0-bee8-6c1d4a887d65",
"Units": 2.0
},
{
"ResourceId": "b1858f2a-7ebb-4fc0-bee8-6c1d4a887d65",
"Units": 2.0
}
]
},
{
"TaskId": "782ccddc-a81c-4d2d-806b-b3be7efffebd",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-01-10T09:23:40.0297866+00:00",
"End": "2026-01-10T09:23:40.0297866+00:00",
"Rate": 6.0,
"RateTableId": "83adf460-da99-4a1e-a17b-12617a9d2eaa",
"Resources": [
{
"ResourceId": "b1858f2a-7ebb-4fc0-bee8-6c1d4a887d65",
"Units": 2.0
},
{
"ResourceId": "b1858f2a-7ebb-4fc0-bee8-6c1d4a887d65",
"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": "02f93eec-ba8a-408d-bada-3dedda877eae",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "02f93eec-ba8a-408d-bada-3dedda877eae",
"Cost": 2.0,
"Revenue": 3.0
}
]