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": "f8210cd8-7d0f-4724-ba7f-af002d46dd87",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-10-30T08:42:38.3377304+00:00",
"End": "2026-10-30T08:42:38.3377304+00:00",
"Rate": 6.0,
"RateTableId": "d2984836-9852-49c0-8ff1-eade5874976f",
"Resources": [
{
"ResourceId": "f17a1f46-a85b-41e6-b916-ed40e620adaf",
"Units": 2.0
},
{
"ResourceId": "f17a1f46-a85b-41e6-b916-ed40e620adaf",
"Units": 2.0
}
]
},
{
"TaskId": "f8210cd8-7d0f-4724-ba7f-af002d46dd87",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-10-30T08:42:38.3377304+00:00",
"End": "2026-10-30T08:42:38.3377304+00:00",
"Rate": 6.0,
"RateTableId": "d2984836-9852-49c0-8ff1-eade5874976f",
"Resources": [
{
"ResourceId": "f17a1f46-a85b-41e6-b916-ed40e620adaf",
"Units": 2.0
},
{
"ResourceId": "f17a1f46-a85b-41e6-b916-ed40e620adaf",
"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": "f6a6cb32-fd90-413b-9cd5-135196cd2605",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "f6a6cb32-fd90-413b-9cd5-135196cd2605",
"Cost": 2.0,
"Revenue": 3.0
}
]