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": "353aa326-335c-4b7d-b823-230af92e04fe",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-09-23T10:22:17.0547753+00:00",
"End": "2026-09-23T10:22:17.0547753+00:00",
"Rate": 6.0,
"RateTableId": "7408d27c-60f5-4f68-8a1a-7548aec9767f",
"Resources": [
{
"ResourceId": "5c735212-2771-4c1e-b332-f7a31bb6e145",
"Units": 2.0
},
{
"ResourceId": "5c735212-2771-4c1e-b332-f7a31bb6e145",
"Units": 2.0
}
]
},
{
"TaskId": "353aa326-335c-4b7d-b823-230af92e04fe",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-09-23T10:22:17.0547753+00:00",
"End": "2026-09-23T10:22:17.0547753+00:00",
"Rate": 6.0,
"RateTableId": "7408d27c-60f5-4f68-8a1a-7548aec9767f",
"Resources": [
{
"ResourceId": "5c735212-2771-4c1e-b332-f7a31bb6e145",
"Units": 2.0
},
{
"ResourceId": "5c735212-2771-4c1e-b332-f7a31bb6e145",
"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": "9ab0406f-e588-46ec-8719-22ddc6f4a643",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "9ab0406f-e588-46ec-8719-22ddc6f4a643",
"Cost": 2.0,
"Revenue": 3.0
}
]