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": "9b1dc10c-8d9a-4e36-90d8-1a4b90ef282d",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-03-06T15:29:58.7746002+00:00",
"End": "2026-03-06T15:29:58.7746002+00:00",
"Rate": 6.0,
"RateTableId": "d9811049-7d2b-4df9-9f33-ee2ebf8612d2",
"Resources": [
{
"ResourceId": "2bc697b4-3c99-4a40-b511-1d5186d0b78d",
"Units": 2.0
},
{
"ResourceId": "2bc697b4-3c99-4a40-b511-1d5186d0b78d",
"Units": 2.0
}
]
},
{
"TaskId": "9b1dc10c-8d9a-4e36-90d8-1a4b90ef282d",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-03-06T15:29:58.7746002+00:00",
"End": "2026-03-06T15:29:58.7746002+00:00",
"Rate": 6.0,
"RateTableId": "d9811049-7d2b-4df9-9f33-ee2ebf8612d2",
"Resources": [
{
"ResourceId": "2bc697b4-3c99-4a40-b511-1d5186d0b78d",
"Units": 2.0
},
{
"ResourceId": "2bc697b4-3c99-4a40-b511-1d5186d0b78d",
"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": "4ce23d0e-22c2-4756-b844-3ecf06d94a43",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "4ce23d0e-22c2-4756-b844-3ecf06d94a43",
"Cost": 2.0,
"Revenue": 3.0
}
]