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": "6227ce1a-6298-4844-9f0a-2093dfbd2995",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-07-04T17:04:22.6704955+00:00",
"End": "2026-07-04T17:04:22.6704955+00:00",
"Rate": 6.0,
"RateTableId": "53aadb08-6f93-49d2-9e1c-877a1f0343e5",
"Resources": [
{
"ResourceId": "ee7d8f87-543e-4cac-b99e-5ebea052af69",
"Units": 2.0
},
{
"ResourceId": "ee7d8f87-543e-4cac-b99e-5ebea052af69",
"Units": 2.0
}
]
},
{
"TaskId": "6227ce1a-6298-4844-9f0a-2093dfbd2995",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-07-04T17:04:22.6704955+00:00",
"End": "2026-07-04T17:04:22.6704955+00:00",
"Rate": 6.0,
"RateTableId": "53aadb08-6f93-49d2-9e1c-877a1f0343e5",
"Resources": [
{
"ResourceId": "ee7d8f87-543e-4cac-b99e-5ebea052af69",
"Units": 2.0
},
{
"ResourceId": "ee7d8f87-543e-4cac-b99e-5ebea052af69",
"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": "91a9cdd1-e0ca-457a-8d7a-5ec89e821159",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "91a9cdd1-e0ca-457a-8d7a-5ec89e821159",
"Cost": 2.0,
"Revenue": 3.0
}
]