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": "4736230c-2e46-42d4-9720-62f347c4accf",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-10-31T17:20:12.5768214+00:00",
"End": "2026-10-31T17:20:12.5768214+00:00",
"Rate": 6.0,
"RateTableId": "9d69ff24-966b-49e8-8ada-a44b70f84802",
"Resources": [
{
"ResourceId": "36f77561-f90e-490e-80aa-ea3d89a3b14b",
"Units": 2.0
},
{
"ResourceId": "36f77561-f90e-490e-80aa-ea3d89a3b14b",
"Units": 2.0
}
]
},
{
"TaskId": "4736230c-2e46-42d4-9720-62f347c4accf",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-10-31T17:20:12.5768214+00:00",
"End": "2026-10-31T17:20:12.5768214+00:00",
"Rate": 6.0,
"RateTableId": "9d69ff24-966b-49e8-8ada-a44b70f84802",
"Resources": [
{
"ResourceId": "36f77561-f90e-490e-80aa-ea3d89a3b14b",
"Units": 2.0
},
{
"ResourceId": "36f77561-f90e-490e-80aa-ea3d89a3b14b",
"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": "936a9e8b-cdd1-4a03-a5dc-2b21be7064a4",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "936a9e8b-cdd1-4a03-a5dc-2b21be7064a4",
"Cost": 2.0,
"Revenue": 3.0
}
]