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": "6768dbf9-8ce1-4184-895a-0781282c773b",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-01-09T07:41:55.5621663+00:00",
"End": "2026-01-09T07:41:55.5621663+00:00",
"Rate": 6.0,
"RateTableId": "02c6f857-dd9c-4d00-acb0-24167871bd45",
"Resources": [
{
"ResourceId": "5a31f229-71f3-409a-9a87-2ab2ea4a1f7e",
"Units": 2.0
},
{
"ResourceId": "5a31f229-71f3-409a-9a87-2ab2ea4a1f7e",
"Units": 2.0
}
]
},
{
"TaskId": "6768dbf9-8ce1-4184-895a-0781282c773b",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-01-09T07:41:55.5621663+00:00",
"End": "2026-01-09T07:41:55.5621663+00:00",
"Rate": 6.0,
"RateTableId": "02c6f857-dd9c-4d00-acb0-24167871bd45",
"Resources": [
{
"ResourceId": "5a31f229-71f3-409a-9a87-2ab2ea4a1f7e",
"Units": 2.0
},
{
"ResourceId": "5a31f229-71f3-409a-9a87-2ab2ea4a1f7e",
"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": "be87e2c2-0c0b-49ff-8fff-94488165a77b",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "be87e2c2-0c0b-49ff-8fff-94488165a77b",
"Cost": 2.0,
"Revenue": 3.0
}
]