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": "1379061e-d375-4968-b75f-be9775cd0a59",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-02-28T02:25:19.3833122+00:00",
"End": "2026-02-28T02:25:19.3833122+00:00",
"Rate": 6.0,
"RateTableId": "8961c3f9-7bd8-412d-8208-859f082c6bbd",
"Resources": [
{
"ResourceId": "34611f21-6f6f-46a0-aa2e-c8a6eff3517a",
"Units": 2.0
},
{
"ResourceId": "34611f21-6f6f-46a0-aa2e-c8a6eff3517a",
"Units": 2.0
}
]
},
{
"TaskId": "1379061e-d375-4968-b75f-be9775cd0a59",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-02-28T02:25:19.3833122+00:00",
"End": "2026-02-28T02:25:19.3833122+00:00",
"Rate": 6.0,
"RateTableId": "8961c3f9-7bd8-412d-8208-859f082c6bbd",
"Resources": [
{
"ResourceId": "34611f21-6f6f-46a0-aa2e-c8a6eff3517a",
"Units": 2.0
},
{
"ResourceId": "34611f21-6f6f-46a0-aa2e-c8a6eff3517a",
"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": "4aad6408-2df9-492f-afa6-234528f4ef35",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "4aad6408-2df9-492f-afa6-234528f4ef35",
"Cost": 2.0,
"Revenue": 3.0
}
]