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": "12dbd971-8c3b-44df-bc9f-803fed8645b6",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-04-04T05:37:27.0430734+00:00",
"End": "2026-04-04T05:37:27.0430734+00:00",
"Rate": 6.0,
"RateTableId": "ee864b47-7503-4d60-8115-b460435f8095",
"Resources": [
{
"ResourceId": "6dab90e7-d005-40ce-be2f-6bd42fd43de7",
"Units": 2.0
},
{
"ResourceId": "6dab90e7-d005-40ce-be2f-6bd42fd43de7",
"Units": 2.0
}
]
},
{
"TaskId": "12dbd971-8c3b-44df-bc9f-803fed8645b6",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-04-04T05:37:27.0430734+00:00",
"End": "2026-04-04T05:37:27.0430734+00:00",
"Rate": 6.0,
"RateTableId": "ee864b47-7503-4d60-8115-b460435f8095",
"Resources": [
{
"ResourceId": "6dab90e7-d005-40ce-be2f-6bd42fd43de7",
"Units": 2.0
},
{
"ResourceId": "6dab90e7-d005-40ce-be2f-6bd42fd43de7",
"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": "3f0345ba-2f72-4b2a-8ab9-642a1a8ea286",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "3f0345ba-2f72-4b2a-8ab9-642a1a8ea286",
"Cost": 2.0,
"Revenue": 3.0
}
]