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": "4814cec6-eec6-45ac-aec8-7c646d354e5f",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-06-30T12:30:53.1482177+00:00",
"End": "2026-06-30T12:30:53.1482177+00:00",
"Rate": 6.0,
"RateTableId": "8224fd2b-1cdd-4ce5-92a2-cfbf369f02ee",
"Resources": [
{
"ResourceId": "e519e74e-bdbe-488c-9412-7825a40c0d86",
"Units": 2.0
},
{
"ResourceId": "e519e74e-bdbe-488c-9412-7825a40c0d86",
"Units": 2.0
}
]
},
{
"TaskId": "4814cec6-eec6-45ac-aec8-7c646d354e5f",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-06-30T12:30:53.1482177+00:00",
"End": "2026-06-30T12:30:53.1482177+00:00",
"Rate": 6.0,
"RateTableId": "8224fd2b-1cdd-4ce5-92a2-cfbf369f02ee",
"Resources": [
{
"ResourceId": "e519e74e-bdbe-488c-9412-7825a40c0d86",
"Units": 2.0
},
{
"ResourceId": "e519e74e-bdbe-488c-9412-7825a40c0d86",
"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": "c244576c-7a42-4b6b-80e5-c95229228c26",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "c244576c-7a42-4b6b-80e5-c95229228c26",
"Cost": 2.0,
"Revenue": 3.0
}
]