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": "8e603750-8bcc-4144-9709-69903fe8e9c3",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-11-01T06:34:18.9149374+00:00",
"End": "2026-11-01T06:34:18.9149374+00:00",
"Rate": 6.0,
"RateTableId": "95bc839b-405f-4d03-a66f-814496b7c58d",
"Resources": [
{
"ResourceId": "9ec40867-49c3-4378-9c43-355834090799",
"Units": 2.0
},
{
"ResourceId": "9ec40867-49c3-4378-9c43-355834090799",
"Units": 2.0
}
]
},
{
"TaskId": "8e603750-8bcc-4144-9709-69903fe8e9c3",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-11-01T06:34:18.9149374+00:00",
"End": "2026-11-01T06:34:18.9149374+00:00",
"Rate": 6.0,
"RateTableId": "95bc839b-405f-4d03-a66f-814496b7c58d",
"Resources": [
{
"ResourceId": "9ec40867-49c3-4378-9c43-355834090799",
"Units": 2.0
},
{
"ResourceId": "9ec40867-49c3-4378-9c43-355834090799",
"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": "c9d464cd-e4ea-4aa1-b404-6b673fab6c9e",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "c9d464cd-e4ea-4aa1-b404-6b673fab6c9e",
"Cost": 2.0,
"Revenue": 3.0
}
]