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": "bfa01b6f-e834-4c56-89f8-52fb20ea205f",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-05-09T20:39:45.0187488+00:00",
"End": "2026-05-09T20:39:45.0187488+00:00",
"Rate": 6.0,
"RateTableId": "f9be8c1b-c755-49c2-8a6a-05e23dbc1358",
"Resources": [
{
"ResourceId": "50c62a7c-0a8a-4f22-8e5f-6c8c0af860e6",
"Units": 2.0
},
{
"ResourceId": "50c62a7c-0a8a-4f22-8e5f-6c8c0af860e6",
"Units": 2.0
}
]
},
{
"TaskId": "bfa01b6f-e834-4c56-89f8-52fb20ea205f",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-05-09T20:39:45.0187488+00:00",
"End": "2026-05-09T20:39:45.0187488+00:00",
"Rate": 6.0,
"RateTableId": "f9be8c1b-c755-49c2-8a6a-05e23dbc1358",
"Resources": [
{
"ResourceId": "50c62a7c-0a8a-4f22-8e5f-6c8c0af860e6",
"Units": 2.0
},
{
"ResourceId": "50c62a7c-0a8a-4f22-8e5f-6c8c0af860e6",
"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": "8a9b94bf-d70e-440f-8fa6-b3db40e0b4bc",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "8a9b94bf-d70e-440f-8fa6-b3db40e0b4bc",
"Cost": 2.0,
"Revenue": 3.0
}
]