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": "33fd926a-c0c9-4f71-aedd-fa5885e8cc88",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-07-09T21:31:43.7683458+00:00",
"End": "2026-07-09T21:31:43.7683458+00:00",
"Rate": 6.0,
"RateTableId": "7bad84b1-ab25-4dd0-8650-e35de2a2dc67",
"Resources": [
{
"ResourceId": "39ac4c70-902f-4a1a-bda9-2ace3edc367e",
"Units": 2.0
},
{
"ResourceId": "39ac4c70-902f-4a1a-bda9-2ace3edc367e",
"Units": 2.0
}
]
},
{
"TaskId": "33fd926a-c0c9-4f71-aedd-fa5885e8cc88",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-07-09T21:31:43.7683458+00:00",
"End": "2026-07-09T21:31:43.7683458+00:00",
"Rate": 6.0,
"RateTableId": "7bad84b1-ab25-4dd0-8650-e35de2a2dc67",
"Resources": [
{
"ResourceId": "39ac4c70-902f-4a1a-bda9-2ace3edc367e",
"Units": 2.0
},
{
"ResourceId": "39ac4c70-902f-4a1a-bda9-2ace3edc367e",
"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": "cef3acad-eeea-4239-9043-45af45c165b4",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "cef3acad-eeea-4239-9043-45af45c165b4",
"Cost": 2.0,
"Revenue": 3.0
}
]