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": "053bb553-5010-4b34-b41a-3dba6c7ebd52",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-05-03T17:13:57.6596765+00:00",
"End": "2026-05-03T17:13:57.6596765+00:00",
"Rate": 6.0,
"RateTableId": "d3ad7932-3eeb-488c-922e-c05d528bfc22",
"Resources": [
{
"ResourceId": "bcfe97f6-0f16-4ced-bd0d-746c75d51bcb",
"Units": 2.0
},
{
"ResourceId": "bcfe97f6-0f16-4ced-bd0d-746c75d51bcb",
"Units": 2.0
}
]
},
{
"TaskId": "053bb553-5010-4b34-b41a-3dba6c7ebd52",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-05-03T17:13:57.6596765+00:00",
"End": "2026-05-03T17:13:57.6596765+00:00",
"Rate": 6.0,
"RateTableId": "d3ad7932-3eeb-488c-922e-c05d528bfc22",
"Resources": [
{
"ResourceId": "bcfe97f6-0f16-4ced-bd0d-746c75d51bcb",
"Units": 2.0
},
{
"ResourceId": "bcfe97f6-0f16-4ced-bd0d-746c75d51bcb",
"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": "e07a4428-7f88-4040-9618-28e1222fba77",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "e07a4428-7f88-4040-9618-28e1222fba77",
"Cost": 2.0,
"Revenue": 3.0
}
]