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": "557598a8-389a-4a0f-a7b0-bff63b7097bd",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-03-26T23:26:12.7064702+00:00",
"End": "2026-03-26T23:26:12.7064702+00:00",
"Rate": 6.0,
"RateTableId": "b86fd208-c36c-48dd-8634-1cec34a94675",
"Resources": [
{
"ResourceId": "97bbfaa1-8357-4a8d-a740-880d12a32148",
"Units": 2.0
},
{
"ResourceId": "97bbfaa1-8357-4a8d-a740-880d12a32148",
"Units": 2.0
}
]
},
{
"TaskId": "557598a8-389a-4a0f-a7b0-bff63b7097bd",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-03-26T23:26:12.7064702+00:00",
"End": "2026-03-26T23:26:12.7064702+00:00",
"Rate": 6.0,
"RateTableId": "b86fd208-c36c-48dd-8634-1cec34a94675",
"Resources": [
{
"ResourceId": "97bbfaa1-8357-4a8d-a740-880d12a32148",
"Units": 2.0
},
{
"ResourceId": "97bbfaa1-8357-4a8d-a740-880d12a32148",
"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": "2dc24490-f512-4d2a-91b4-a2a6f76c67ef",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "2dc24490-f512-4d2a-91b4-a2a6f76c67ef",
"Cost": 2.0,
"Revenue": 3.0
}
]