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": "6b50ec94-0688-4f60-b01f-6d6ae431fbfc",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-09-07T22:52:55.2654683+00:00",
"End": "2026-09-07T22:52:55.2654683+00:00",
"Rate": 6.0,
"RateTableId": "9555ec45-0e92-4f86-8c25-efa28d3bb3e3",
"Resources": [
{
"ResourceId": "a8980f11-a3b0-45e6-8c5b-afb43e9e3660",
"Units": 2.0
},
{
"ResourceId": "a8980f11-a3b0-45e6-8c5b-afb43e9e3660",
"Units": 2.0
}
]
},
{
"TaskId": "6b50ec94-0688-4f60-b01f-6d6ae431fbfc",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-09-07T22:52:55.2654683+00:00",
"End": "2026-09-07T22:52:55.2654683+00:00",
"Rate": 6.0,
"RateTableId": "9555ec45-0e92-4f86-8c25-efa28d3bb3e3",
"Resources": [
{
"ResourceId": "a8980f11-a3b0-45e6-8c5b-afb43e9e3660",
"Units": 2.0
},
{
"ResourceId": "a8980f11-a3b0-45e6-8c5b-afb43e9e3660",
"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": "733d542f-596b-48fd-aece-e0d6681f0303",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "733d542f-596b-48fd-aece-e0d6681f0303",
"Cost": 2.0,
"Revenue": 3.0
}
]