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": "650a6626-1495-4ae3-95e6-e28d81c8ad03",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-09-12T03:59:32.9709097+00:00",
"End": "2026-09-12T03:59:32.9709097+00:00",
"Rate": 6.0,
"RateTableId": "5112e27e-c298-427c-aa82-e7ac35429b8e",
"Resources": [
{
"ResourceId": "4577b0f0-2a77-42af-aa7d-9af53d26423e",
"Units": 2.0
},
{
"ResourceId": "4577b0f0-2a77-42af-aa7d-9af53d26423e",
"Units": 2.0
}
]
},
{
"TaskId": "650a6626-1495-4ae3-95e6-e28d81c8ad03",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-09-12T03:59:32.9709097+00:00",
"End": "2026-09-12T03:59:32.9709097+00:00",
"Rate": 6.0,
"RateTableId": "5112e27e-c298-427c-aa82-e7ac35429b8e",
"Resources": [
{
"ResourceId": "4577b0f0-2a77-42af-aa7d-9af53d26423e",
"Units": 2.0
},
{
"ResourceId": "4577b0f0-2a77-42af-aa7d-9af53d26423e",
"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": "0296e49a-213d-482b-8760-b955388fd4d5",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "0296e49a-213d-482b-8760-b955388fd4d5",
"Cost": 2.0,
"Revenue": 3.0
}
]