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": "4ae933c8-cc12-4e32-a4fa-478c50c622e6",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-08-15T02:59:50.1559999+00:00",
"End": "2026-08-15T02:59:50.1559999+00:00",
"Rate": 6.0,
"RateTableId": "cc6e5365-8931-4122-b90f-8d1107207907",
"Resources": [
{
"ResourceId": "f0d68cbc-807a-4346-92b7-dc264751af2d",
"Units": 2.0
},
{
"ResourceId": "f0d68cbc-807a-4346-92b7-dc264751af2d",
"Units": 2.0
}
]
},
{
"TaskId": "4ae933c8-cc12-4e32-a4fa-478c50c622e6",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-08-15T02:59:50.1559999+00:00",
"End": "2026-08-15T02:59:50.1559999+00:00",
"Rate": 6.0,
"RateTableId": "cc6e5365-8931-4122-b90f-8d1107207907",
"Resources": [
{
"ResourceId": "f0d68cbc-807a-4346-92b7-dc264751af2d",
"Units": 2.0
},
{
"ResourceId": "f0d68cbc-807a-4346-92b7-dc264751af2d",
"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": "241ea54e-3b7d-48b5-afad-c29726f1763e",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "241ea54e-3b7d-48b5-afad-c29726f1763e",
"Cost": 2.0,
"Revenue": 3.0
}
]