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": "cb8f6c6c-6111-4a73-84dd-5debd2b1d814",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-10-28T02:44:10.450828+00:00",
"End": "2026-10-28T02:44:10.450828+00:00",
"Rate": 6.0,
"RateTableId": "1520ba3f-b293-4645-b8a5-0e0383db65e7",
"Resources": [
{
"ResourceId": "fcbdf32b-0787-495c-9cc7-414be4f0ab3b",
"Units": 2.0
},
{
"ResourceId": "fcbdf32b-0787-495c-9cc7-414be4f0ab3b",
"Units": 2.0
}
]
},
{
"TaskId": "cb8f6c6c-6111-4a73-84dd-5debd2b1d814",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-10-28T02:44:10.450828+00:00",
"End": "2026-10-28T02:44:10.450828+00:00",
"Rate": 6.0,
"RateTableId": "1520ba3f-b293-4645-b8a5-0e0383db65e7",
"Resources": [
{
"ResourceId": "fcbdf32b-0787-495c-9cc7-414be4f0ab3b",
"Units": 2.0
},
{
"ResourceId": "fcbdf32b-0787-495c-9cc7-414be4f0ab3b",
"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": "25e96c09-faae-4a23-a411-dca799307cfd",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "25e96c09-faae-4a23-a411-dca799307cfd",
"Cost": 2.0,
"Revenue": 3.0
}
]