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": "815fd259-fc29-497f-afc8-dcbf0f96d114",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-07-30T16:47:18.9782286+00:00",
"End": "2026-07-30T16:47:18.9782286+00:00",
"Rate": 6.0,
"RateTableId": "1ae4a138-bba9-4f7c-bec5-d641bd614977",
"Resources": [
{
"ResourceId": "e42b4c4b-d9ea-4fd3-a00f-eb75e3916486",
"Units": 2.0
},
{
"ResourceId": "e42b4c4b-d9ea-4fd3-a00f-eb75e3916486",
"Units": 2.0
}
]
},
{
"TaskId": "815fd259-fc29-497f-afc8-dcbf0f96d114",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-07-30T16:47:18.9782286+00:00",
"End": "2026-07-30T16:47:18.9782286+00:00",
"Rate": 6.0,
"RateTableId": "1ae4a138-bba9-4f7c-bec5-d641bd614977",
"Resources": [
{
"ResourceId": "e42b4c4b-d9ea-4fd3-a00f-eb75e3916486",
"Units": 2.0
},
{
"ResourceId": "e42b4c4b-d9ea-4fd3-a00f-eb75e3916486",
"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": "de013152-cf06-4361-a973-052a91d6783b",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "de013152-cf06-4361-a973-052a91d6783b",
"Cost": 2.0,
"Revenue": 3.0
}
]