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": "cac0261a-cd8d-45a7-be10-e1eab55c05e5",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-03-07T01:57:46.7928294+00:00",
"End": "2026-03-07T01:57:46.7928294+00:00",
"Rate": 6.0,
"RateTableId": "7e1ce34f-e968-4fc2-9274-4bd719016f59",
"Resources": [
{
"ResourceId": "ddfbce2f-8af6-40fb-8149-79ac0c15f39b",
"Units": 2.0
},
{
"ResourceId": "ddfbce2f-8af6-40fb-8149-79ac0c15f39b",
"Units": 2.0
}
]
},
{
"TaskId": "cac0261a-cd8d-45a7-be10-e1eab55c05e5",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-03-07T01:57:46.7928294+00:00",
"End": "2026-03-07T01:57:46.7928294+00:00",
"Rate": 6.0,
"RateTableId": "7e1ce34f-e968-4fc2-9274-4bd719016f59",
"Resources": [
{
"ResourceId": "ddfbce2f-8af6-40fb-8149-79ac0c15f39b",
"Units": 2.0
},
{
"ResourceId": "ddfbce2f-8af6-40fb-8149-79ac0c15f39b",
"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": "5480d08e-4c5d-4176-90e1-28a43b32076c",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "5480d08e-4c5d-4176-90e1-28a43b32076c",
"Cost": 2.0,
"Revenue": 3.0
}
]