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": "4c51ff8f-5a60-46da-95a1-d96e82f83bd8",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-11-03T03:09:18.826416+00:00",
"End": "2026-11-03T03:09:18.826416+00:00",
"Rate": 6.0,
"RateTableId": "dbff444e-eab2-4df0-8696-1eba225c1330",
"Resources": [
{
"ResourceId": "5d973bd1-cf74-4d60-a3f5-2fb88bf384c5",
"Units": 2.0
},
{
"ResourceId": "5d973bd1-cf74-4d60-a3f5-2fb88bf384c5",
"Units": 2.0
}
]
},
{
"TaskId": "4c51ff8f-5a60-46da-95a1-d96e82f83bd8",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-11-03T03:09:18.826416+00:00",
"End": "2026-11-03T03:09:18.826416+00:00",
"Rate": 6.0,
"RateTableId": "dbff444e-eab2-4df0-8696-1eba225c1330",
"Resources": [
{
"ResourceId": "5d973bd1-cf74-4d60-a3f5-2fb88bf384c5",
"Units": 2.0
},
{
"ResourceId": "5d973bd1-cf74-4d60-a3f5-2fb88bf384c5",
"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": "34942b35-00fc-4a98-8165-965db36968bb",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "34942b35-00fc-4a98-8165-965db36968bb",
"Cost": 2.0,
"Revenue": 3.0
}
]