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": "846a6480-2ea6-4d52-897c-5baa5c5b4b35",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-03-08T04:48:34.323534+00:00",
"End": "2026-03-08T04:48:34.323534+00:00",
"Rate": 6.0,
"RateTableId": "d872e4e8-8fa7-49d9-bd1c-652f55e9a54d",
"Resources": [
{
"ResourceId": "223598fb-a626-4a97-930b-c1b31dc72e6d",
"Units": 2.0
},
{
"ResourceId": "223598fb-a626-4a97-930b-c1b31dc72e6d",
"Units": 2.0
}
]
},
{
"TaskId": "846a6480-2ea6-4d52-897c-5baa5c5b4b35",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-03-08T04:48:34.323534+00:00",
"End": "2026-03-08T04:48:34.323534+00:00",
"Rate": 6.0,
"RateTableId": "d872e4e8-8fa7-49d9-bd1c-652f55e9a54d",
"Resources": [
{
"ResourceId": "223598fb-a626-4a97-930b-c1b31dc72e6d",
"Units": 2.0
},
{
"ResourceId": "223598fb-a626-4a97-930b-c1b31dc72e6d",
"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": "afa8a06a-b1dc-4e74-bae5-baad3ef174ea",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "afa8a06a-b1dc-4e74-bae5-baad3ef174ea",
"Cost": 2.0,
"Revenue": 3.0
}
]