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": "2939741a-beae-4066-a4f8-23c986869455",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-07-21T09:49:20.4878167+00:00",
"End": "2026-07-21T09:49:20.4878167+00:00",
"Rate": 6.0,
"RateTableId": "e9895a70-9d8d-4ea7-990c-dfc72b884e6f",
"Resources": [
{
"ResourceId": "9b02c179-513f-4810-bfca-52cd37b136e4",
"Units": 2.0
},
{
"ResourceId": "9b02c179-513f-4810-bfca-52cd37b136e4",
"Units": 2.0
}
]
},
{
"TaskId": "2939741a-beae-4066-a4f8-23c986869455",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-07-21T09:49:20.4878167+00:00",
"End": "2026-07-21T09:49:20.4878167+00:00",
"Rate": 6.0,
"RateTableId": "e9895a70-9d8d-4ea7-990c-dfc72b884e6f",
"Resources": [
{
"ResourceId": "9b02c179-513f-4810-bfca-52cd37b136e4",
"Units": 2.0
},
{
"ResourceId": "9b02c179-513f-4810-bfca-52cd37b136e4",
"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": "a6dcdb56-ec9a-48d7-ae7b-3a98cc17ca5e",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "a6dcdb56-ec9a-48d7-ae7b-3a98cc17ca5e",
"Cost": 2.0,
"Revenue": 3.0
}
]