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": "41d142f3-b05b-474f-b588-11178dd56971",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-06-14T20:17:47.6439785+00:00",
"End": "2026-06-14T20:17:47.6439785+00:00",
"Rate": 6.0,
"RateTableId": "6e06e057-89af-4913-843a-6ad55e93dae6",
"Resources": [
{
"ResourceId": "bcb3fb29-0fd2-4bcc-96e3-0b5e387e5b2d",
"Units": 2.0
},
{
"ResourceId": "bcb3fb29-0fd2-4bcc-96e3-0b5e387e5b2d",
"Units": 2.0
}
]
},
{
"TaskId": "41d142f3-b05b-474f-b588-11178dd56971",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-06-14T20:17:47.6439785+00:00",
"End": "2026-06-14T20:17:47.6439785+00:00",
"Rate": 6.0,
"RateTableId": "6e06e057-89af-4913-843a-6ad55e93dae6",
"Resources": [
{
"ResourceId": "bcb3fb29-0fd2-4bcc-96e3-0b5e387e5b2d",
"Units": 2.0
},
{
"ResourceId": "bcb3fb29-0fd2-4bcc-96e3-0b5e387e5b2d",
"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": "d7ac4e47-f8e7-49e2-a9a2-131ef3065e3e",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "d7ac4e47-f8e7-49e2-a9a2-131ef3065e3e",
"Cost": 2.0,
"Revenue": 3.0
}
]