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": "873e3e2d-1bf1-4a74-a691-b374352f4a75",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-06-05T16:26:22.2279796+00:00",
"End": "2026-06-05T16:26:22.2279796+00:00",
"Rate": 6.0,
"RateTableId": "b8612462-b7a7-4a88-ae43-2631dc3717d5",
"Resources": [
{
"ResourceId": "4850e437-fbfe-4a46-989b-9d84e2d0130a",
"Units": 2.0
},
{
"ResourceId": "4850e437-fbfe-4a46-989b-9d84e2d0130a",
"Units": 2.0
}
]
},
{
"TaskId": "873e3e2d-1bf1-4a74-a691-b374352f4a75",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-06-05T16:26:22.2279796+00:00",
"End": "2026-06-05T16:26:22.2279796+00:00",
"Rate": 6.0,
"RateTableId": "b8612462-b7a7-4a88-ae43-2631dc3717d5",
"Resources": [
{
"ResourceId": "4850e437-fbfe-4a46-989b-9d84e2d0130a",
"Units": 2.0
},
{
"ResourceId": "4850e437-fbfe-4a46-989b-9d84e2d0130a",
"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": "413eec17-d76a-4035-a930-3077958d0fdc",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "413eec17-d76a-4035-a930-3077958d0fdc",
"Cost": 2.0,
"Revenue": 3.0
}
]