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": "9413bc34-df14-426b-85ed-f6f5390296fc",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-01-30T06:17:27.8167188+00:00",
"End": "2026-01-30T06:17:27.8167188+00:00",
"Rate": 6.0,
"RateTableId": "17c34188-e4aa-4b2f-9f86-261bb5b694d1",
"Resources": [
{
"ResourceId": "bc26c071-f8f2-4bd8-8699-2a11dd630fe0",
"Units": 2.0
},
{
"ResourceId": "bc26c071-f8f2-4bd8-8699-2a11dd630fe0",
"Units": 2.0
}
]
},
{
"TaskId": "9413bc34-df14-426b-85ed-f6f5390296fc",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-01-30T06:17:27.8167188+00:00",
"End": "2026-01-30T06:17:27.8167188+00:00",
"Rate": 6.0,
"RateTableId": "17c34188-e4aa-4b2f-9f86-261bb5b694d1",
"Resources": [
{
"ResourceId": "bc26c071-f8f2-4bd8-8699-2a11dd630fe0",
"Units": 2.0
},
{
"ResourceId": "bc26c071-f8f2-4bd8-8699-2a11dd630fe0",
"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": "8fa63c68-f62a-4b78-8a7d-532a9209282d",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "8fa63c68-f62a-4b78-8a7d-532a9209282d",
"Cost": 2.0,
"Revenue": 3.0
}
]