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": "4b00be40-a13f-4ea7-84d4-bd426280a983",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-05-22T08:38:57.6353106+00:00",
"End": "2026-05-22T08:38:57.6353106+00:00",
"Rate": 6.0,
"RateTableId": "17300eef-9d41-46fe-8c6c-6a62f32440f4",
"Resources": [
{
"ResourceId": "f9e3a7b6-4f64-4587-8767-1d0aff8bb264",
"Units": 2.0
},
{
"ResourceId": "f9e3a7b6-4f64-4587-8767-1d0aff8bb264",
"Units": 2.0
}
]
},
{
"TaskId": "4b00be40-a13f-4ea7-84d4-bd426280a983",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-05-22T08:38:57.6353106+00:00",
"End": "2026-05-22T08:38:57.6353106+00:00",
"Rate": 6.0,
"RateTableId": "17300eef-9d41-46fe-8c6c-6a62f32440f4",
"Resources": [
{
"ResourceId": "f9e3a7b6-4f64-4587-8767-1d0aff8bb264",
"Units": 2.0
},
{
"ResourceId": "f9e3a7b6-4f64-4587-8767-1d0aff8bb264",
"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": "8acbe239-98ff-437f-b7c0-eb021c68f9e0",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "8acbe239-98ff-437f-b7c0-eb021c68f9e0",
"Cost": 2.0,
"Revenue": 3.0
}
]