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": "b4782ff1-7015-4d83-8f29-f16bdad52ca1",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-06-18T23:38:14.9756986+00:00",
"End": "2026-06-18T23:38:14.9756986+00:00",
"Rate": 6.0,
"RateTableId": "881545e0-3814-437d-83cf-74821ab5103f",
"Resources": [
{
"ResourceId": "67aa59d1-7346-45db-8498-ac8599051836",
"Units": 2.0
},
{
"ResourceId": "67aa59d1-7346-45db-8498-ac8599051836",
"Units": 2.0
}
]
},
{
"TaskId": "b4782ff1-7015-4d83-8f29-f16bdad52ca1",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-06-18T23:38:14.9756986+00:00",
"End": "2026-06-18T23:38:14.9756986+00:00",
"Rate": 6.0,
"RateTableId": "881545e0-3814-437d-83cf-74821ab5103f",
"Resources": [
{
"ResourceId": "67aa59d1-7346-45db-8498-ac8599051836",
"Units": 2.0
},
{
"ResourceId": "67aa59d1-7346-45db-8498-ac8599051836",
"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": "f6f9d212-698d-4e82-ae76-27b06adb647c",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "f6f9d212-698d-4e82-ae76-27b06adb647c",
"Cost": 2.0,
"Revenue": 3.0
}
]