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": "d905ecdc-ae6f-4e8a-b506-edada85ec31c",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-05-01T20:01:58.4392929+00:00",
"End": "2026-05-01T20:01:58.4392929+00:00",
"Rate": 6.0,
"RateTableId": "9540deb0-f381-40a5-8e41-021f2fb92d46",
"Resources": [
{
"ResourceId": "38a7f1d4-a68a-4ab9-974e-bb28a66c8066",
"Units": 2.0
},
{
"ResourceId": "38a7f1d4-a68a-4ab9-974e-bb28a66c8066",
"Units": 2.0
}
]
},
{
"TaskId": "d905ecdc-ae6f-4e8a-b506-edada85ec31c",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-05-01T20:01:58.4392929+00:00",
"End": "2026-05-01T20:01:58.4392929+00:00",
"Rate": 6.0,
"RateTableId": "9540deb0-f381-40a5-8e41-021f2fb92d46",
"Resources": [
{
"ResourceId": "38a7f1d4-a68a-4ab9-974e-bb28a66c8066",
"Units": 2.0
},
{
"ResourceId": "38a7f1d4-a68a-4ab9-974e-bb28a66c8066",
"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": "1e867f03-b770-48b5-a816-26d215877bca",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "1e867f03-b770-48b5-a816-26d215877bca",
"Cost": 2.0,
"Revenue": 3.0
}
]