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": "0a970ecf-6159-4ae5-88a4-aae36b9a805d",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-01-27T23:29:48.6818123+00:00",
"End": "2026-01-27T23:29:48.6818123+00:00",
"Rate": 6.0,
"RateTableId": "8bcc1d8a-3e6a-43c2-a60c-c57b33e1555a",
"Resources": [
{
"ResourceId": "efb870b9-3a56-434b-bc03-1940696ad69f",
"Units": 2.0
},
{
"ResourceId": "efb870b9-3a56-434b-bc03-1940696ad69f",
"Units": 2.0
}
]
},
{
"TaskId": "0a970ecf-6159-4ae5-88a4-aae36b9a805d",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-01-27T23:29:48.6818123+00:00",
"End": "2026-01-27T23:29:48.6818123+00:00",
"Rate": 6.0,
"RateTableId": "8bcc1d8a-3e6a-43c2-a60c-c57b33e1555a",
"Resources": [
{
"ResourceId": "efb870b9-3a56-434b-bc03-1940696ad69f",
"Units": 2.0
},
{
"ResourceId": "efb870b9-3a56-434b-bc03-1940696ad69f",
"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": "8b8ce5f7-5e27-45e2-9028-e27db49a19e0",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "8b8ce5f7-5e27-45e2-9028-e27db49a19e0",
"Cost": 2.0,
"Revenue": 3.0
}
]