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": "35e241e8-e922-4245-8d48-72cc037a0e4f",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-05-08T08:17:08.9571613+00:00",
"End": "2026-05-08T08:17:08.9571613+00:00",
"Rate": 6.0,
"RateTableId": "4ba26b22-351b-4b37-b693-9eefa604e370",
"Resources": [
{
"ResourceId": "0c30e382-589e-4f4c-a444-a730c8c87da4",
"Units": 2.0
},
{
"ResourceId": "0c30e382-589e-4f4c-a444-a730c8c87da4",
"Units": 2.0
}
]
},
{
"TaskId": "35e241e8-e922-4245-8d48-72cc037a0e4f",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-05-08T08:17:08.9571613+00:00",
"End": "2026-05-08T08:17:08.9571613+00:00",
"Rate": 6.0,
"RateTableId": "4ba26b22-351b-4b37-b693-9eefa604e370",
"Resources": [
{
"ResourceId": "0c30e382-589e-4f4c-a444-a730c8c87da4",
"Units": 2.0
},
{
"ResourceId": "0c30e382-589e-4f4c-a444-a730c8c87da4",
"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": "35df4977-f9b3-4e5b-a7f3-181fd4c03eb7",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "35df4977-f9b3-4e5b-a7f3-181fd4c03eb7",
"Cost": 2.0,
"Revenue": 3.0
}
]