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": "2670159c-bf80-4331-b8f6-9b368c0f34b7",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-05-14T10:25:32.0654633+00:00",
"End": "2026-05-14T10:25:32.0654633+00:00",
"Rate": 6.0,
"RateTableId": "960f4583-9f3c-44c4-b6bf-694cf1125392",
"Resources": [
{
"ResourceId": "3f5996b0-d2cc-468e-8fa6-403f7b706626",
"Units": 2.0
},
{
"ResourceId": "3f5996b0-d2cc-468e-8fa6-403f7b706626",
"Units": 2.0
}
]
},
{
"TaskId": "2670159c-bf80-4331-b8f6-9b368c0f34b7",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-05-14T10:25:32.0654633+00:00",
"End": "2026-05-14T10:25:32.0654633+00:00",
"Rate": 6.0,
"RateTableId": "960f4583-9f3c-44c4-b6bf-694cf1125392",
"Resources": [
{
"ResourceId": "3f5996b0-d2cc-468e-8fa6-403f7b706626",
"Units": 2.0
},
{
"ResourceId": "3f5996b0-d2cc-468e-8fa6-403f7b706626",
"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": "566b9508-feb6-4005-ad36-23b52e88b60a",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "566b9508-feb6-4005-ad36-23b52e88b60a",
"Cost": 2.0,
"Revenue": 3.0
}
]