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": "35354a80-fbca-43a7-9557-4253beffcba4",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-08-01T18:09:01.3258984+00:00",
"End": "2026-08-01T18:09:01.3258984+00:00",
"Rate": 6.0,
"RateTableId": "26a30502-eb93-4e6f-a572-7f9ccbaf1b8f",
"Resources": [
{
"ResourceId": "487ec486-f189-4a9b-80cb-5c10b1bf54cb",
"Units": 2.0
},
{
"ResourceId": "487ec486-f189-4a9b-80cb-5c10b1bf54cb",
"Units": 2.0
}
]
},
{
"TaskId": "35354a80-fbca-43a7-9557-4253beffcba4",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-08-01T18:09:01.3258984+00:00",
"End": "2026-08-01T18:09:01.3258984+00:00",
"Rate": 6.0,
"RateTableId": "26a30502-eb93-4e6f-a572-7f9ccbaf1b8f",
"Resources": [
{
"ResourceId": "487ec486-f189-4a9b-80cb-5c10b1bf54cb",
"Units": 2.0
},
{
"ResourceId": "487ec486-f189-4a9b-80cb-5c10b1bf54cb",
"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": "2507f7d3-a6c2-4e3a-a554-4f81b846d20c",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "2507f7d3-a6c2-4e3a-a554-4f81b846d20c",
"Cost": 2.0,
"Revenue": 3.0
}
]