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": "a7f208e7-c9be-475b-bcef-9a90ae9d2351",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-08-22T13:32:11.690192+00:00",
"End": "2026-08-22T13:32:11.690192+00:00",
"Rate": 6.0,
"RateTableId": "555c2d96-d737-412d-86f9-a6d5d546e538",
"Resources": [
{
"ResourceId": "994d4bbb-969e-4a74-97aa-2fe90d9b56c4",
"Units": 2.0
},
{
"ResourceId": "994d4bbb-969e-4a74-97aa-2fe90d9b56c4",
"Units": 2.0
}
]
},
{
"TaskId": "a7f208e7-c9be-475b-bcef-9a90ae9d2351",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-08-22T13:32:11.690192+00:00",
"End": "2026-08-22T13:32:11.690192+00:00",
"Rate": 6.0,
"RateTableId": "555c2d96-d737-412d-86f9-a6d5d546e538",
"Resources": [
{
"ResourceId": "994d4bbb-969e-4a74-97aa-2fe90d9b56c4",
"Units": 2.0
},
{
"ResourceId": "994d4bbb-969e-4a74-97aa-2fe90d9b56c4",
"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": "3c8a2680-04e2-4c76-b417-59f5f1602759",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "3c8a2680-04e2-4c76-b417-59f5f1602759",
"Cost": 2.0,
"Revenue": 3.0
}
]