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": "63686f6f-1ffc-4908-8abb-d3b8b7e249ed",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-04-16T21:02:51.4199945+00:00",
"End": "2026-04-16T21:02:51.4199945+00:00",
"Rate": 6.0,
"RateTableId": "e2be6b40-6369-4f4e-872c-234df21acb04",
"Resources": [
{
"ResourceId": "6641279a-d881-4fc3-8226-69e6f1b3b1dc",
"Units": 2.0
},
{
"ResourceId": "6641279a-d881-4fc3-8226-69e6f1b3b1dc",
"Units": 2.0
}
]
},
{
"TaskId": "63686f6f-1ffc-4908-8abb-d3b8b7e249ed",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-04-16T21:02:51.4199945+00:00",
"End": "2026-04-16T21:02:51.4199945+00:00",
"Rate": 6.0,
"RateTableId": "e2be6b40-6369-4f4e-872c-234df21acb04",
"Resources": [
{
"ResourceId": "6641279a-d881-4fc3-8226-69e6f1b3b1dc",
"Units": 2.0
},
{
"ResourceId": "6641279a-d881-4fc3-8226-69e6f1b3b1dc",
"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": "35000148-3d59-43a8-9b56-ceeeb33fb4f9",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "35000148-3d59-43a8-9b56-ceeeb33fb4f9",
"Cost": 2.0,
"Revenue": 3.0
}
]