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": "6d87f09d-6c3c-478a-99fd-382e593eee14",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-02-23T00:16:25.255159+00:00",
"End": "2026-02-23T00:16:25.255159+00:00",
"Rate": 6.0,
"RateTableId": "766fc020-3d37-4a74-83a8-091d7c9856da",
"Resources": [
{
"ResourceId": "9aa643ec-bd8b-4868-8763-91fa2d0a25d8",
"Units": 2.0
},
{
"ResourceId": "9aa643ec-bd8b-4868-8763-91fa2d0a25d8",
"Units": 2.0
}
]
},
{
"TaskId": "6d87f09d-6c3c-478a-99fd-382e593eee14",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-02-23T00:16:25.255159+00:00",
"End": "2026-02-23T00:16:25.255159+00:00",
"Rate": 6.0,
"RateTableId": "766fc020-3d37-4a74-83a8-091d7c9856da",
"Resources": [
{
"ResourceId": "9aa643ec-bd8b-4868-8763-91fa2d0a25d8",
"Units": 2.0
},
{
"ResourceId": "9aa643ec-bd8b-4868-8763-91fa2d0a25d8",
"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": "91d804e7-87db-4517-8947-29c25e1c4818",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "91d804e7-87db-4517-8947-29c25e1c4818",
"Cost": 2.0,
"Revenue": 3.0
}
]