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": "bb97e95d-04b6-43b4-b15b-cac68d17cff0",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-10-27T06:02:00.7219308+00:00",
"End": "2026-10-27T06:02:00.7219308+00:00",
"Rate": 6.0,
"RateTableId": "fe7af3a9-f489-4685-a130-7b83f9ef8fce",
"Resources": [
{
"ResourceId": "ea39b4ac-2314-421b-a903-6802ee6faafc",
"Units": 2.0
},
{
"ResourceId": "ea39b4ac-2314-421b-a903-6802ee6faafc",
"Units": 2.0
}
]
},
{
"TaskId": "bb97e95d-04b6-43b4-b15b-cac68d17cff0",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-10-27T06:02:00.7219308+00:00",
"End": "2026-10-27T06:02:00.7219308+00:00",
"Rate": 6.0,
"RateTableId": "fe7af3a9-f489-4685-a130-7b83f9ef8fce",
"Resources": [
{
"ResourceId": "ea39b4ac-2314-421b-a903-6802ee6faafc",
"Units": 2.0
},
{
"ResourceId": "ea39b4ac-2314-421b-a903-6802ee6faafc",
"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": "70004a9f-0a7f-482d-a12a-af2fc1209671",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "70004a9f-0a7f-482d-a12a-af2fc1209671",
"Cost": 2.0,
"Revenue": 3.0
}
]