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": "ab11de73-87ed-48d4-baec-18dc641ffe0b",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-06-27T16:32:32.3698858+00:00",
"End": "2026-06-27T16:32:32.3698858+00:00",
"Rate": 6.0,
"RateTableId": "bb1ed938-33a7-4ce8-87cb-d64b0ad20ae1",
"Resources": [
{
"ResourceId": "52f3a1c5-3ee0-4158-86a0-7ee9c65e4ddf",
"Units": 2.0
},
{
"ResourceId": "52f3a1c5-3ee0-4158-86a0-7ee9c65e4ddf",
"Units": 2.0
}
]
},
{
"TaskId": "ab11de73-87ed-48d4-baec-18dc641ffe0b",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-06-27T16:32:32.3698858+00:00",
"End": "2026-06-27T16:32:32.3698858+00:00",
"Rate": 6.0,
"RateTableId": "bb1ed938-33a7-4ce8-87cb-d64b0ad20ae1",
"Resources": [
{
"ResourceId": "52f3a1c5-3ee0-4158-86a0-7ee9c65e4ddf",
"Units": 2.0
},
{
"ResourceId": "52f3a1c5-3ee0-4158-86a0-7ee9c65e4ddf",
"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": "761f20f0-244d-4509-a44e-92948a48b635",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "761f20f0-244d-4509-a44e-92948a48b635",
"Cost": 2.0,
"Revenue": 3.0
}
]