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": "241e280e-eced-4d9a-b880-7fb67c6954a1",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-06-11T16:34:52.5739168+00:00",
"End": "2026-06-11T16:34:52.5739168+00:00",
"Rate": 6.0,
"RateTableId": "0160702e-8afa-4a2c-b5e3-2a7d7ffecebe",
"Resources": [
{
"ResourceId": "43a064f3-b6be-462f-80b0-8d2b62cfe540",
"Units": 2.0
},
{
"ResourceId": "43a064f3-b6be-462f-80b0-8d2b62cfe540",
"Units": 2.0
}
]
},
{
"TaskId": "241e280e-eced-4d9a-b880-7fb67c6954a1",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-06-11T16:34:52.5739168+00:00",
"End": "2026-06-11T16:34:52.5739168+00:00",
"Rate": 6.0,
"RateTableId": "0160702e-8afa-4a2c-b5e3-2a7d7ffecebe",
"Resources": [
{
"ResourceId": "43a064f3-b6be-462f-80b0-8d2b62cfe540",
"Units": 2.0
},
{
"ResourceId": "43a064f3-b6be-462f-80b0-8d2b62cfe540",
"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": "7abd7526-2482-40b2-91d9-fbb991c84c3b",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "7abd7526-2482-40b2-91d9-fbb991c84c3b",
"Cost": 2.0,
"Revenue": 3.0
}
]