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": "a3331b6f-8467-4772-b7a3-ab3cb061e3d3",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-03-23T09:38:35.1622784+00:00",
"End": "2026-03-23T09:38:35.1622784+00:00",
"Rate": 6.0,
"RateTableId": "e9a0075d-4ccb-420d-a77f-2cb8957ba1ac",
"Resources": [
{
"ResourceId": "84739c4c-8f7d-485a-820a-48374962333b",
"Units": 2.0
},
{
"ResourceId": "84739c4c-8f7d-485a-820a-48374962333b",
"Units": 2.0
}
]
},
{
"TaskId": "a3331b6f-8467-4772-b7a3-ab3cb061e3d3",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-03-23T09:38:35.1622784+00:00",
"End": "2026-03-23T09:38:35.1622784+00:00",
"Rate": 6.0,
"RateTableId": "e9a0075d-4ccb-420d-a77f-2cb8957ba1ac",
"Resources": [
{
"ResourceId": "84739c4c-8f7d-485a-820a-48374962333b",
"Units": 2.0
},
{
"ResourceId": "84739c4c-8f7d-485a-820a-48374962333b",
"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": "25e8b218-ff88-4563-a4ba-88c013f2ef87",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "25e8b218-ff88-4563-a4ba-88c013f2ef87",
"Cost": 2.0,
"Revenue": 3.0
}
]