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": "04e44afe-478e-4d0a-94be-6969235ee6ab",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-05-04T12:53:44.9160993+00:00",
"End": "2026-05-04T12:53:44.9160993+00:00",
"Rate": 6.0,
"RateTableId": "887216da-791a-4a0e-8444-ba7c65dc6950",
"Resources": [
{
"ResourceId": "08892eb1-916a-410e-8c98-52fe033bb154",
"Units": 2.0
},
{
"ResourceId": "08892eb1-916a-410e-8c98-52fe033bb154",
"Units": 2.0
}
]
},
{
"TaskId": "04e44afe-478e-4d0a-94be-6969235ee6ab",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-05-04T12:53:44.9160993+00:00",
"End": "2026-05-04T12:53:44.9160993+00:00",
"Rate": 6.0,
"RateTableId": "887216da-791a-4a0e-8444-ba7c65dc6950",
"Resources": [
{
"ResourceId": "08892eb1-916a-410e-8c98-52fe033bb154",
"Units": 2.0
},
{
"ResourceId": "08892eb1-916a-410e-8c98-52fe033bb154",
"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": "846b37cc-70c1-431d-8702-d7c8730c74f2",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "846b37cc-70c1-431d-8702-d7c8730c74f2",
"Cost": 2.0,
"Revenue": 3.0
}
]