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": "8df6ec0c-db66-47a5-bb9c-4c93ebd44a16",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-06-20T00:16:57.6290471+00:00",
"End": "2026-06-20T00:16:57.6290471+00:00",
"Rate": 6.0,
"RateTableId": "ec6827a8-691a-4bd0-bdac-74dd30a314e1",
"Resources": [
{
"ResourceId": "48f67d2c-8d06-4458-9b70-3df9d80afe15",
"Units": 2.0
},
{
"ResourceId": "48f67d2c-8d06-4458-9b70-3df9d80afe15",
"Units": 2.0
}
]
},
{
"TaskId": "8df6ec0c-db66-47a5-bb9c-4c93ebd44a16",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-06-20T00:16:57.6290471+00:00",
"End": "2026-06-20T00:16:57.6290471+00:00",
"Rate": 6.0,
"RateTableId": "ec6827a8-691a-4bd0-bdac-74dd30a314e1",
"Resources": [
{
"ResourceId": "48f67d2c-8d06-4458-9b70-3df9d80afe15",
"Units": 2.0
},
{
"ResourceId": "48f67d2c-8d06-4458-9b70-3df9d80afe15",
"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": "5d6577cf-4379-4657-897a-7e8bf548f797",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "5d6577cf-4379-4657-897a-7e8bf548f797",
"Cost": 2.0,
"Revenue": 3.0
}
]