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": "0c663371-b969-4222-9a95-1aebf05bf390",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-05-27T11:36:26.322061+00:00",
"End": "2026-05-27T11:36:26.322061+00:00",
"Rate": 6.0,
"RateTableId": "7a8039cf-ab8d-45d0-84a8-28fb8c126981",
"Resources": [
{
"ResourceId": "2c60eb49-b3fe-401f-9120-72b2115455a2",
"Units": 2.0
},
{
"ResourceId": "2c60eb49-b3fe-401f-9120-72b2115455a2",
"Units": 2.0
}
]
},
{
"TaskId": "0c663371-b969-4222-9a95-1aebf05bf390",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-05-27T11:36:26.322061+00:00",
"End": "2026-05-27T11:36:26.322061+00:00",
"Rate": 6.0,
"RateTableId": "7a8039cf-ab8d-45d0-84a8-28fb8c126981",
"Resources": [
{
"ResourceId": "2c60eb49-b3fe-401f-9120-72b2115455a2",
"Units": 2.0
},
{
"ResourceId": "2c60eb49-b3fe-401f-9120-72b2115455a2",
"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": "c3c5176b-268b-4fa5-b019-e881992df481",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "c3c5176b-268b-4fa5-b019-e881992df481",
"Cost": 2.0,
"Revenue": 3.0
}
]